sylvainpolletvillard / ObjectModel

Strong Dynamically Typed Object Modeling for JavaScript
http://objectmodel.js.org
MIT License
467 stars 30 forks source link

Consider creating ADL serializer to generate ObjectModel? #138

Closed shah closed 2 years ago

shah commented 3 years ago

This is a fantastic library, good work @sylvainpolletvillard! If you haven't seen it, check out ADL. If you and that team created an ADL serializer for JavaScript using ObjectModel as an underlying infrastructure it would be pretty slick. This way we could have the same algebraic data types on the server as well as the client (in the browser).

sylvainpolletvillard commented 3 years ago

I suggest you post this issue on ADL repository since this is more a feature request for ADL rather than for this project. If the ADL team wants to consider a plain JavaScript target with an additional runtime for describing their data models, ObjectModel is not the only available choice, and they will know better than me if this choice makes sense.