Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Why not spaces instead of dots?

by bikeNomad (Priest)
on Jul 15, 2001 at 23:55 UTC ( #96891=note: print w/replies, xml ) Need Help??


in reply to Dots and cargo-cult programming

Actually, it would make for more readable code if Perl6 made it so that:
$obj a b c(d,e) f

meant the same as Perl5's
$obj->a->b->c(d,e)->f

or the proposed
$obj.a.b.c(d,e).f

I hope that perl6 drops the confusing bareword notation for functions (as opposed to method calls), though. Having a b c d mean the same as a(b(c(d()))) causes you to have to suddenly start reading from right to left to track the order of program execution, even though the rest of Perl is left-to-right.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2022-08-18 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?