2 ms·
that code is pattern matching on an ast node; the complexity is from the data structure involved, not the language. there is no more concise way to match a spec
by zem 4y ago
that code is pattern matching on an ast node; the complexity is from the data structure involved, not the language. there is no more concise way to match a specific node and get at the relevant fields, just various different forms of verbose code.