3 ms·
Author here. Strucjure has much more expressive power. Strucjure views are first-class values and can call other views (or recursively call themselves). This a
by jamii 14y ago
Author here.
Strucjure has much more expressive power. Strucjure views are first-class values and can call other views (or recursively call themselves). This allows them to recognise eg context free grammars. Most of the examples in this post cannot be expressed with core.match
Currently, this power comes at the expense of speed but I hope to be able to get reasonably close to core.match for simple patterns. Core.match will always be somewhat faster because it can reorder decisions and eliminate redundant tests.