Hacker News new | ask | show | jobs
by macintux 1834 days ago
This functionality in Erlang is something I miss in most other languages, and I was quite displeased when I discovered Python 3 abandoned tuple destructuring in function invocations.
2 comments

I don't know Erlang but I also found Clojure's destructuring to be an extremely useful tool. For me it allowed developing useful project idioms that can be very effective in cutting a lot of boilerplate.
The destructuring abilities of Javascript are something I regularly miss in Python, especially when I am hacking on a polyglot project with a JS frontend and a Py backend.