Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Re: Re: Apocalypse 12

by eyepopslikeamosquito (Chancellor)
on Apr 18, 2004 at 12:27 UTC ( #346091=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Apocalypse 12
in thread Apocalypse 12

My overall first impression is that Perl 6 will be much better than for Perl 5 for building really large systems, so I'd like to see some examples in E12 illustrating how Perl 6 scales better.

So far, I like it a lot. The only thing that has caused me to pull a face is the whitespace-changing semantics in the Methods section where Larry commented:

Yes, this is different from Perl 5. And yes, I know certain people hate it. They can write their own grammar.

This scares me enough to always put parens around function calls (which I mostly do in Perl 5 anyway). So, if you can unscare me, that would be nice. :-)

Replies are listed 'Best First'.
Re: Apocalypse 12
by Abigail-II (Bishop) on Apr 19, 2004 at 08:09 UTC
    This scares me enough to always put parens around function calls
    You know what's really scary? Depending on how you place your parens, that might not save you. Say you want to call a method (does the new rule count for subroutine calls as well?) which takes an argument, and add 1 to the result. Just like in Perl5, you use parens:
    obj.method ($arg) + 1;
    In that case, you might as well have not put the parens there - it's equivalent to:
    obj.method ($arg + 1);
    If you want to be save, and not depend on unnatural (unnatural in the sense that all major programming languages I know don't have their expressions change meaning depending whether there's a space before an opening paren or not) whitespace rules you have to use an extra set of parens:
    (obj.method ($arg)) + 1;


      There is no point in designing your own language if you aren't going to do a few things different from everyone else. You can carp all you like, but this is one thing I choose to do differently.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://346091]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2018-06-21 09:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.