Re:How we failed, then succeeded, at migrating to TypeScript
by AriaMinaei on Sunday October 13, 2019 @02:57PM
(#21242151)
You're getting in the realm of "projectional editing." It's a fascinating idea: https://news.ycombinator.com/item?id=15534555
Re:How we failed, then succeeded, at migrating to TypeScript
by minxomat on Sunday October 13, 2019 @03:16PM
(#21242280)
Yep. You can take MPS today and implement an AST projection that looks like whatever you want. No parsing involved, impossible to even write syntactically invalid code (since it is not code you're writing, but an AST projection).
Re:How we failed, then succeeded, at migrating to TypeScript
by switz on Sunday October 13, 2019 @04:31PM
(#21242767)
I love reading about stuff like this, thanks for sharing. Developer UX still has a lot of room to grow.
I really miss the elegance of Coffeescript. ES6 is great, Typescript is great, but sometimes I feel like I have to visually parse a lot of static cruft to read the essence of the program.
What if one's editor had a toggle hotkey to hide typescript typings. Maybe you could turn it off to visually parse the program real quick, before turning it back on to edit it.
Hmm...