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

Re: Implied actions are bad

by HuckinFappy (Pilgrim)
on Jul 09, 2006 at 03:25 UTC ( #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 :)


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2023-06-06 08:44 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.