From 3c093dc7069ecabdfd121b9806dde0cf62426cd0 Mon Sep 17 00:00:00 2001 From: jlp765 Date: Thu, 15 Aug 2013 02:31:08 -0700 Subject: [PATCH] Updated Feature suggestions (markdown) --- Feature-suggestions.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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