You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there's still a lot of mess. Howabout we make the Pattern class barebones, and build it up dynamically? A function addMethod could take care of adding the method, and optionally patternifying one or more arguments, adding a toplevel module function that's curried and with the pattern as the final argument, etc.
This already mostly exists as Pattern.prototype.define, why not use that for everything?
Then it'd be easy to switch to having the Pattern object be the query function, if we wanted.
Mainly I have in mind to make sure all pattern methods have equivalent module functions and vice-versa, while removing redundancy.
The text was updated successfully, but these errors were encountered: