Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Why not spaces instead of dots?

by bikeNomad (Priest)
on Jul 15, 2001 at 23:55 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2025-05-20 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.