3 ms·
I've seen good productivity from domain-specific languages. One-size-fits-all languages end up too convoluted in my opinion (Java, C#, cough). Enterprise/web-sc
by tabtab 5y ago
I've seen good productivity from domain-specific languages. One-size-fits-all languages end up too convoluted in my opinion (Java, C#, cough). Enterprise/web-scale has different needs than mom-and-pop, and systems software has different needs than CRUD/biz software. One size doesn't really fit all.
Thus, what looks most promising to me is a syntax convention flexible enough to bend into a wide variety of languages, static and dynamic. "Moth" is one attempt. It's influenced by the flexibility of XML, and is kind of LINQ-esque.
Kits can then evolve that allow component/feature mix-and-matching to build domain-specific languages. One doesn't have to build a parser from scratch, similar to how most major language libraries come with an XML parser.
https://www.reddit.com/r/ProgrammingLanguages/comments/ky22dx/simplified_take_on_moth_colonfree/ https://www.reddit.com/r/ProgrammingLanguages/comments/ky22d...
https://www.reddit.com/r/compsci/comments/brrzad/universal_programming_language_syntax_proposal/ https://www.reddit.com/r/compsci/comments/brrzad/universal_p...
One thing Moth sacrifices to get simplicity is tossing of "Fortran style" infix, such as "x = a + b * c". The Moth equivalent could be something like x=plus(a, times(b,c)); or x=a.plus.b.times.c; In practice, I don't really need such in domains I know. If you do a lot of math, then Moth is probably not for you. Can't make everybody happy, just 2/3, I mean 2.div.3 :-)