4 ms·
> I can't even figure out what lines 43-55 do, but that's a lot of nesting It's a very elegant pattern match on a deeply nested structure. It's declarative, no
by ttymck 4y ago
> I can't even figure out what lines 43-55 do, but that's a lot of nesting
It's a very elegant pattern match on a deeply nested structure. It's declarative, not imperative, so if you are concerned about "nesting complexity", you need not be.
How would you implement this otherwise?
- mikewarot 4y agoI honestly don't understand what's going on... but in Pascal I'd use short circuit expression evaluation to make the comparisons as I go into the depths. There's too many layers of nesting, in too foreign a syntax for me to even parse. I suspect it could be done a clearer manner in pascal.
- ttymck 4y agoI would truly love to see it in pascal. I would be happy to give my opinion on it as a "foreign syntax" to me