Re: Functional-style pattern matching

2010-03-10 Thread Little Walker
That's almost exactly the example from:    http://perlcabal.org/syn/S06.html#Unpacking_tree_node_parameters 1. I feel incredibly embarrassed to have missed this 2. This is awesome!

Re: Functional-style pattern matching

2010-03-10 Thread Little Walker
Which is pretty powerful, really. Absolutely - I think you're referring to the 'type subset' stuff which is great. This is where Perl 6 is not the same as functional languages, since it's got an imperative OO element as well. True, there can be friction between the functional style and OO,

Functional-style pattern matching

2010-03-09 Thread Little Walker
Hi there, I've been looking around to see if there's been any discussion of introducing functional programming-style pattern matching for method/ function dispatch. Could someone point me to any such discussions? I've seen that perl6 is taking on a lot of ideas from the functional world (lazy