This is a great idea! I would suggest that we follow the library support for Temptory to build this libatscc, making extensive use of templates (instead of higher order functions).
On Monday, April 1, 2019 at 6:46:44 AM UTC-4, Artyom Shalkhakov wrote: > > Hi all, > > I've started work on improving atscc2js yesterday and found that we have > three similar projects: > > 1. https://github.com/steinwaywhw/ATS-Python3 > 2. https://github.com/bakpakin/ats-lua > 3. https://github.com/sazl/ats-go > 4. and the in-progress atscc2js > > Every target programming language comes with its own "prelude" (e.g. > libatscc2js for JS), but such preludes essentially implement the interfaces > defined in libatscc. > > Now I'm thinking that we need to package up the interface and keep it as > uniform as possible across the different targets, so that programmers may > hopefully share more code between platforms with little issues (or no issue > at all). > > With the above in mind, I propose to: > > 1. package up libatscc somehow, e.g. put it on NPM (I'm working on > this, it will require only minimal changes to the existing code) > 2. come up with some process to maintain this 'specification' (maybe > create a github organization and put this library into a repository; let > people use issues and PRs to propose changes) > > Is anybody interested? If not I'll just go with the first point, and the > specification will live on in the ATS-Postiats repository (for now). > -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-users+unsubscr...@googlegroups.com. To post to this group, send email to ats-lang-users@googlegroups.com. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/4485e149-7cc3-4ce6-ab01-e6c7fdddb1f1%40googlegroups.com.