diff --git a/Feature-suggestions.md b/Feature-suggestions.md index 88eb493..8e8a3ca 100644 --- a/Feature-suggestions.md +++ b/Feature-suggestions.md @@ -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. +- A pastebin for nim on the Nim Homepage or somewhere else. - 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]`` +- a simple way of indexing the last element of an array or sequence, to avoid long-hand code like ``arr[arr.len-1]`` - 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 +- array/sequence comprehension - introspection like python's dir()