in reply to Re: No braces
in thread No braces

Well, I dont use the extra whitespace as you do, but I have to say ive become quite accustomed to the parens required around an if. *shrug* Perl6 is a while before it makes into my production enviornment, so im not too fussed.

But this whitespace issue really gets your goat eh Abigail? Heh.


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi


Replies are listed 'Best First'.
Re: Re: Re: No braces
by hhdave (Beadle) on Feb 12, 2004 at 23:20 UTC

    This all rather makes me appreciate the simplicity of lisp syntax. No precedence rules, no ambiguity and trivially easy for my editor to automatically indent correctly. That fact is very very useful. There's no need for a distinction between trinary if and if/else either - they are one and the same thing. I know the more 'textured' appearance of perl code helps to add visual distinctiveness and is a more natural way of expressing some things, but it sure is easy to edit lisp code with a good editor.

    I realise of course that lisp syntax (or lack thereof) is not to everyones taste though. By the way - I rather like the doSomething() if $condition; notation in perl - it seems to fit the way my brain works quite well for a lot of cases.

    With the significant whitespace perl6 syntax does seem to be heading in the direction of increased hairiness.