On Sat, 2009-08-22 at 23:58 -0700, bradford cross wrote:
> 
> 
> On Sat, Aug 22, 2009 at 11:24 PM, Michel Salim
> <michael.silva...@gmail.com> wrote:
>         
>         On Sat, 2009-08-22 at 23:00 -0700, bradford cross wrote:
>         
>         >
>         > Destructuring is useful all over the place, not just for
>         pattern
>         > matching.  For example, it is really useful in function
>         parameter
>         > vectors.
>         
>         
>         I consider that to be an example of pattern matching, though.
> 
> As far as I understand it.  Pattern matching is built from
> destructuring bind, but destructuring bind is not pattern matching.
> Pattern matching follows a match-when-return, or match-with-return
> logical flow written as:  [match_val] -> return_val
> 
Fair enough; I guess it's just that, prior to Clojure, you tend to get
one with the other (thus pattern-matching functional language let you
both bind or match, both within a function and (for Haskell, at least)
in the function declaration as well.

Regards,

-- 
Michel



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to