Updated Feature suggestions (markdown)
This commit is contained in:
parent
2a1dc6fcd4
commit
d579681219
|
@ -37,9 +37,7 @@ quickly).
|
|||
- A user-defined ternary operator is entirely possible (and really simple).
|
||||
|
||||
- <del>a simple way of indexing the last element of an array or sequence, to avoid long-hand code like ``arr[arr.len-1]``</del>
|
||||
- You can do: ``arr[arr.high]`` or ``arr[arr.low]`` for indexing the last and first element or an array or sequence.
|
||||
- If it is ``thisismylongname[thisismylongname.high]`` thats not helpfull. ``thisismylongname[>]`` and ``thisismylongname[<]`` looks nice for that in my eyes.
|
||||
|
||||
- You can do: ``arr[arr.high]`` or ``arr[arr.low]`` for indexing the last and first element or an array or sequence or ``arr[^1]`` for the last element.
|
||||
- a shorthand way of discarding the return value of a proc (to improve readability)
|
||||
|
||||
- a shorthand initialization of arrays or sequences, eg var x: array[0..25, int] = -1
|
||||
|
@ -49,7 +47,8 @@ would initialize all elements of x to -1
|
|||
- <del>array/sequence comprehension</del>
|
||||
- They are present in the ``future`` module of the standard library.
|
||||
|
||||
- introspection like python's dir()
|
||||
- <del>introspection like python's dir()</del>
|
||||
- Possible via metaprogramming
|
||||
|
||||
- scoped imports, like D, Ada, and Ocaml
|
||||
|
||||
|
|
Loading…
Reference in New Issue