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
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
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