News for hackers. Stuff that matters.
Re:Read this post ‘unless’ you’re not a Ruby developer by KMag on Tuesday December 13, 2022 @01:13PM (#33973173)
Many language implementations internally translate source into a simplified de-sugared dialect as you describe as an early compilation step. I believe both ghc and rustc currently do this.

Though, I think it's rare to expand a pattern match/switch into an if-else tree, and much more common to expand an if-else into a 2-way pattern match/switch.

If you're really keen on such a language, you could fairly easily implement such a language as a pre-commit hook source code re-formatter so that all of the source in your repository is in your favorite language subset.

There are no comments on this comment yet.