3 ms·
I may be wrong but didn't they write their own language that compiles to javascript?
by alexfreska 12y ago
I may be wrong but didn't they write their own language that compiles to javascript?
- joshuacc 12y agoIt appears that they did. It was called LunaScript.
- marcog1 12y agoWe did long ago, but ditched that idea because we get to use the tools of JS and we realised that effectively using a DSL embedded in another language allows the developer to break the rules of the DSL.
- hackerboos 12y agoSurely those points apply to TypeScript.
- malcolmredhero2 12y agoLunascript was very different from JavaScript, partly because it had automatic support for our reactivity system. As a result it compiled to JavaScript that looked nothing like the original code (even the control flow was different). Reading this code was very difficult.
- jacklionheart 12y agoThe IDE support for TypeScript is actually pretty great; building our own tooling support for LunaScript felt like something we didn't really want to have to do.