refactor: change onType to match and take only one pattern and result #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "match_syntax"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pursuant to #12. Doesn't quite fully resolve it, because there is still the question of whether
match(...)
can be left out for a behavior that literally matches anything (current behavior), or whethermatch(Passthru, behavior)
should be required for such cases.(Oh, and in place of an onType with lots of alternating PATTERN, VALUE, PATTERN, VALUE arguments, one now exports an array of
match(PATTERN, VALUE)
items.)