Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Perl 6 Whitespace Issues

by PhilHibbs (Hermit)
on Aug 10, 2004 at 17:26 UTC ( #381664=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Perl 6 Whitespace Issues
in thread How to Sell Perl 6

Do you mean to say that Abigail's concerns have been addressed? I must say I don't like the idea of code changing meaning from Perl 5 to Perl 6, but neither could I get myself worked up about this particular instance, because I find print length ($foo) + 1; to be ugly. I don't like the GNU bracing style either.


Comment on Re^5: Perl 6 Whitespace Issues
Download Code
Re^6: Perl 6 Whitespace Issues
by TimToady (Parson) on Aug 10, 2004 at 18:23 UTC
    It is still the case that a space between a function name and the parentheses forces it to be treated as a list operator, so there's no joy for Abigail on that point. What has been resolved is the attempt to treat methods the same way, which didn't work so well. Methods are now treated differently from functions, and are assumed to have no arguments unless the next character is a parenthesis indicating an argument list, or a colon indicating an adverb. I just posted a message to perl6-language explaining this in excruciating detail, so I won't repeat it all here. I'd give you a link but it hasn't come through the perl.org gauntlet just yet...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-11-24 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (135 votes), past polls