in reply to rough approximation to pattern matching using local
Sample code would be nice, a test suite even perfect.
It's not as straight forward as you might think, since Haskell is
Please be aware that because of Perl's dynamic nature you are free to write something like
sub multi { my ( $bob ) = @_; if ( $bob == 45 ) { print $bob; return; } elsif (...) { ... return; } else { ... return; } }
anything else is - at best - "only" syntactic sugar.
|
|---|