4 ms·
> For example, I can instantly appreciate Elixir's pattern matching capability because it makes control flow fades into the background (in addition to simultane
by kazinator 7y ago
> For example, I can instantly appreciate Elixir's pattern matching capability because it makes control flow fades into the background (in addition to simultaneously destructuring variables), removing a lot of noise ...
But where does that stuff come from? Structural pattern matching appeared in Lisp.
See papers like:
Format-directed List Processing in LISP [1966]
https://apps.dtic.mil/dtic/tr/fulltext/u2/633242.pdf https://apps.dtic.mil/dtic/tr/fulltext/u2/633242.pdf
METEOR: A LISP Interpreter for String Transformations [1963]
https://dspace.mit.edu/handle/1721.1/6106 https://dspace.mit.edu/handle/1721.1/6106
I'm pretty sure that the word "destructuring" comes from the Lisp culture. Fifteen, twenty years ago, if someone used "destructuring", it had to be a Lisp programmer.