diff --git a/Feature-suggestions.md b/Feature-suggestions.md index a83d5be..b3e0216 100644 --- a/Feature-suggestions.md +++ b/Feature-suggestions.md @@ -23,3 +23,13 @@ quickly). - % formating extended to include math precision (like provided by formatFloat, but in a concise % syntax way) +- easier sorting, that doesn't need wrestling with types. + +- a ternary condition - like ?: in C, or iif() + +- a simple way of indexing the last element of an array or sequence, to avoid long-hand code like arr[arr.len-1] + +- 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 +would initialize all elements of x to -1