Re: Wishlist
- Posted by daryl_vdb at HOTMAIL.COM Jun 27, 2001
- 547 views
>1-- Variable initialization: > integer x = 5 > ... > function foo () > sequence s = "" > ... I agree with that one. >2-- continue statement: > goes to start of for or while loop Agree with that one too. There have been plenty of times I wanted to do this. >3-- Pass-by-reference: > procedure foo (reference p1) > ... > integer x > foo (&x) -- x may be changed Prehaps a better idea: procedure foo (byref sequence s1) or: procedure foo (sequence &s1) This way you would still have type checking. >4-- Enhanced '?' > If a sequence contains all ascii characters, output it as string. It may slow down the ? statement if the interpreter always has to check whether or not all the elements of a sequence are ASCII characters. >5-- Enhanced standard library(s), possibly built-in > string functions > regular expressions > isAscii () etc. > containers >6-- slicing shorthands: > seq[2..] => seq[2..length(seq)] > seq[i..-3] => seq[i..length(seq-3)] > seq = [2..] => seq = seq[2..length(seq)] > seq += "a" => seq = append (seq, "a") The fourth one is already possible. seq &= "a" >15- Block comments That would be al right. It would allow quick commenting of entire blocks of code.