Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Is a good or bad idead to "use feature 'switch'"?

by davido (Archbishop)
on Sep 03, 2013 at 15:41 UTC ( #1052130=note: print w/ replies, xml ) Need Help??


in reply to Is a good or bad idead to "use feature 'switch'"?

given/when, and smartmatch are syntactic sugar for other constructs. You named one alternative, and there are others including dispatch tables with coderefs. given/when/smartmatch weren't re-labeled "experimental" only because they will probably change. The re-labeling is also because their current condition is a little broken, and a little odd, which prevents them from being fully embraced. I'd say that for the time being there are several good reasons to avoid them.


Dave


Comment on Re: Is a good or bad idead to "use feature 'switch'"?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2015-07-07 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls