some of this is done

This commit is contained in:
Daniil Yarancev 2017-08-25 13:07:12 +03:00
parent 8e54f2bbd8
commit d14d21a4e8
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ users could update the documentation in a simple way (and Araq
could take these suggestions and approve or reject them
quickly).
- A pastebin for nim on the Nim Homepage or somewhere else.
- <del>A pastebin for nim on the Nim Homepage or somewhere else.</del>
- Allow multiple ranges (eg 1..3,5..8), handle reverse ranges (eg 5..1, 3.. -3)
@ -35,7 +35,7 @@ quickly).
- a ternary condition - like ?: in C, or iif()
- You can do: ``if cond: a else: b``, IIRC the ``?:`` won't make it into Nim.
- a simple way of indexing the last element of an array or sequence, to avoid long-hand code like ``arr[arr.len-1]``
- <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.
@ -44,7 +44,7 @@ quickly).
- a shorthand initialization of arrays or sequences, eg var x: array[0..25, int] = -1
would initialize all elements of x to -1
- array/sequence comprehension
- <del>array/sequence comprehension</del>
- introspection like python's dir()