Re: Wishlist

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

On Thursday 28 June 2001 07:30, martin.stachon at worldonline.cz wrote:

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

To me, it reads 'foo (append x)'
Far too much like print ( foo & bar ) 
Idea good, re-use of symbol bad.

> 4-- Enhanced '?'
> If a sequence contains all ascii characters, output it as string.
>
> * {20,22,23} it's a string or sequence?.
> * I disagree.

A key to toggle this string display on an off in the debugger.
$ x to print x as a string, ? x to print x as a number, for use in code

> * 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 []

Actually, I believe it will collide:
You can have only one meaning for a keyword, 
regardless of the context. This is probably what makes 
a one-pass 'compiler' possible.

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

I would have to edit literally 100's of functions, since I 'automatically' 
declare result to hold the return value, unless some other word is 
more appropriate.

Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu