Re: Wishlist

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

(sorry for not quoting your text with >, but my Outlook is crazy.
It quotes all msgs but yours not. I'll quote my my text with *)

   MY WISHLIST:

1-- Variable initialization:
integer x = 5
...
function foo ()
sequence s = ""
...

* I agree.

3-- Pass-by-reference:
procedure foo (reference p1)
...
integer x
foo (&x) -- x may be changed

* This is dangerous, but may make code cleaner/faster in some cases.
* Not good for newbies.

4-- Enhanced '?'
If a sequence contains all ascii characters, output it as string.

* {20,22,23} it's a string or sequence?.
* I disagree.

5-- Enhanced standard library(s), possibly built-in
string functions
* especially remove n-th element of sequence
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")

* I'd prefer following syntax
* s[1..end]
* because 'end' is already keyword and it won't collide with
* existing 'end', because it cannot be inside []

12- flags
command line and/or .cfg file gives flags
exw test warn=3 -- run and set 'warn' to 3
test.cfg:
warn = 6 -- default 'warn'
srcpth = ".;c:\temp"
...

* Sounds like PHP...I disagree.
* The interpreter wouldn't know when to set values of this variables
* Because they may be declared at different places of code and
* what if there's a value assigned to them ?
* what if user wants pass to porgram 'x=3' by command line,
* but don't change value of x?
* You should do it by yourself with command_line()

17-  Automatic 'Result'
Have each function automatically declare the object 'Result'
which is returned by default. (Much like Eiffel).
Then the following is legal
function pi ()
    Result = 3.14
end function

* I disagree. This may broke some existing code and saves you from typing
* just a few words.

Karl Bochert

* Martin Stachon
* and his Crazy Outlook Express
* martin.stachon at worldonline.cz
* http://www.webpark.cz/stachon

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

Search



Quick Links

User menu

Not signed in.

Misc Menu