jastrachan | 15 Apr 15:02 2005
Picon

Re: Is this deemed consistent?

parens are only optional on top level statements - like the println. It 
soon becomes hard to parse if not & ambiguities arise.

On 15 Apr 2005, at 12:59, Russel Winder wrote:
> Are parentheses on procedure / function / method calls now considered 
> as
> required?
>
> I ran an old test of mine which was playing with the look and feel of
> optional parentheses and found that the following script runs fine with
> JSR-02:
>
>         adob = new ArrayList ( ) ; // Parentheses required here always 
> :-)
>         adob.add "hello"
>         //println adob.get 0 is not allowed
>         println adob.get ( 0 ) // Parentheses needed because not 
> top-level
>
> Now it strikes me that allowing optional parentheses at level zero but
> not at level 1 is not consistent -- at least for the adob.add call.  I
> know there was a debate on this but cannot remember the outcome.
>
> -- 
> Russel.
> ====================================================
> Dr Russel Winder                +44 20 7585 2200
> 41 Buckmaster Road              +44 7770 465 077
> London SW11 1EN, UK             russel@...
>

James
-------
http://radio.weblogs.com/0112098/


Gmane