Hacker News new | ask | show | jobs
by pyre 5626 days ago
The switch statement isn't being replaced. Perl5 never had a switch statement. Perl6 implemented on as given/when instead of switch/case. The Perl6 switch statement was back-ported to Perl 5.10. The 'use Switch' example in the post was a 3rd party work-around to the lack of a switch statement in the language.

Beyond that, might as well make fun of any differences between languages or just devolve into bickering over indentation/coding style/which line the opening brace should go on/etc.