Re: Wishlist

new topic     » goto parent     » topic index » view thread      » older message » newer message

>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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu