Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mazesc
· 8y ago · 0 comments
I could imagine by destructuring he means e.g. unapply in Scala:
https://docs.scala-lang.org/tour/extractor-objects.html
Comments
[–]
bogomipz
8y ago
Ah OK its a functional construct, this make sense. I have seen this in my brief exposure to Clojure. Thanks for the examples and links.
[–]
fiddlerwoaroof
8y ago
Recent JS versions have it too:
> let {a,b} = {a: 1, b: 2} > a 1 > b 2