4 ms·
Awesome, great work. I'll have to play around with this later and dig into the source. I'm looking forward to that - I'm just beginning to dive into this area
by bbq 14y ago
Awesome, great work. I'll have to play around with this later and dig into the source. I'm looking forward to that - I'm just beginning to dive into this area.
What are your thoughts on implementing reversible patterns?
- jamii 14y ago> What are your thoughts on implementing reversible patterns? I'm thinking something like this (defprotocol Pattern (extract [this input] "=> bindings") (replace [this input bindings] "=> new-input")) This should obey some rule like: (submap? (extract p (replace p input bindings)) bindings) That would make the data-grammar/generic-traversal experiments much nicer and also cleanly delineates patterns from views. It may also help when I try to do things like generative testing. Not quite sure how that would work for (or ...) and (not ...) patterns, so it still needs more hammock time.