calmm-js / partial.lenses

Partial lenses is a comprehensive, high-performance optics library for JavaScript
MIT License
915 stars 36 forks source link

Consider adding more parsing + stringifying combinators or a separate library #167

Open polytypic opened 6 years ago

polytypic commented 6 years ago

Partial isomorphisms make it possible to define both parsers and stringifiers (or even pretty printers) simultaneously as noted in e.g. Invertible syntax descriptions: Unifying parsing and pretty printing. It might make sense to either add some more combinators to Partial Lenses to support such parsing or to create a separate library for the job.