Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Implied actions are bad

by HuckinFappy (Pilgrim)
on Jul 09, 2006 at 03:25 UTC ( [id://559979]=note: print w/replies, xml ) Need Help??


in reply to Re: Getting rid of "new", Implied actions are bad
in thread Getting rid of "new"

Without a verb, your statement "Some::Other::Class( \%options )" has no visible action although one is being performed

And heaven help the poor fool who has to maintain it when it becomes this:

my $foo = Some::Other::Class( code => sub { DoThingsWith( $_[0] ) } );
In the previously mentioned absence of a verb, someone is definitely going to think the action comes from DoThingsWith()....

But I'd be the last person in the world to discourage a Very Cool, if Quite Tricky Idea. It's cleverness personified, and I don't care what The Damian says...cleverness has a place in the world!

Put it in Acme please, so nobody I code with uses it :)

~Jeff

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-09-15 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.