3 ms·
Thoughts on doing it better? The DSL is just a wrapper for the objects.
by krainboltgreene 13y ago
Thoughts on doing it better? The DSL is just a wrapper for the objects.
- wyantb 13y agoI may as well make one suggestion along these lines ( implemented in a similar JS library I whipped up not too long ago: https://github.com/wyantb/js-regex https://github.com/wyantb/js-regex ). Macros! https://github.com/wyantb/js-regex#macros https://github.com/wyantb/js-regex#macros Given some named macro, whenever the user wants to use it, they use addMacro (or some analogous method).