RE some kind of `@unpack` macro: have a look at this question on Stack 
Overflow and its answers:
http://stackoverflow.com/questions/9345056/in-clojure-how-to-destructure-all-the-keys-of-a-map/11182432#11182432

Interestingly enough it is possible to an extent, but for many reasons ends 
up being a bad idea.

What you probably want instead is the Dictionary type - see below. Using 
it, you can write params[:a], params[:b] etc.

http://docs.julialang.org/en/release-0.2/stdlib/base/#indexable-collections

That said, it would be nice to have some kind of map destructuring macro 
similar to Clojure's. Hopefully the pattern matching libraries will 
eventually include something along those lines.

Hope this helps,
Mike

Reply via email to