go ahead... be a heretic | |
PerlMonks |
Fear of Large Languages (was: "Would you use goto")by clintp (Curate) |
on Dec 06, 2001 at 19:11 UTC ( [id://129926]=note: print w/replies, xml ) | Need Help?? |
I couldn't possibly disagree more.
Just so everyone understands that you're not just afraid of goto, let's take a look at a few pieces of syntax:
But, in fact, they're all fairly idiomatic and common Perl. One programmer's "trick" is another programmer's tool. When does a "trick" become an idiom? I'd use any of them in a heartbeat if it was the appropriate tool for the job. I would hope you would too. Coding for clarity is one thing, wearing shackles is quite another. If the syntax is there, documented, and not deprecated -- use it. Those that fear and are unable to deal with large languages should stick to C.
In Section
Seekers of Perl Wisdom
|
|