Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Thoughts on "Go"?

by masak (Scribe)
on Nov 11, 2009 at 15:39 UTC ( #806520=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Thoughts on "Go"?
in thread Thoughts on "Go"?

It's funny - lots of people have this reaction to the paren-lessness of Perl 6. "Yuck! I'd never leave them out!" Often with a rationale of some sort.

A few weeks pass. The person gets comfortable with Perl 6. The scales come off; the parentheses go away.

I've written a fair bit of Perl 6 code for 18 months now. I find the lack of parentheses easier to read and less cluttered than putting them in. After for, if, while et al., they simply don't have a purpose. They don't mean anything. The only reason other languages have them there is that they have things like braceless forms of those keywords, or that they cargo-cult C.


Comment on Re^3: Thoughts on "Go"?
Re^4: Thoughts on "Go"?
by moritz (Cardinal) on Nov 11, 2009 at 15:43 UTC
    The only reason other languages have them there is that they have things like braceless forms of those keywords, or that they cargo-cult C.

    Another valid reason is to prevent parsing ambiguities when the braces are optional, as in C. Making both parens and braces in an if statement optional feels like exaggerated liberty :-)

    Perl 6 - links to (nearly) everything that is Perl 6.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://806520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-12-20 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls