Re: Pattern matching Vs destructuring?

2017-01-27 Thread Francis Avila
There are two different concerns in what people refer to as "pattern matching": binding and flow-control. Destructuring only addresses binding. Pattern matching emphasizes flow control, and some binding features typically come along for free with whatever syntax it uses. (But you could in

Re: Pattern matching Vs destructuring?

2017-01-26 Thread 'Alan Forrester' via Clojure
On 27 Jan 2017, at 07:04, Didier wrote: > Some languages have pattern matching, and Clojure is said to not have it > (without a library), but it does have destructuring. > > It seems to me that destructuring is the same as pattern matching, except > that it can only be used

Pattern matching Vs destructuring?

2017-01-26 Thread Didier
Some languages have pattern matching, and Clojure is said to not have it (without a library), but it does have destructuring. It seems to me that destructuring is the same as pattern matching, except that it can only be used inside function arguments, where as pattern matching can also be used