this post was submitted on 27 Feb 2025
94 points (99.0% liked)
Programmer Humor
33658 readers
568 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why aren't "alternate syntaxes" a thing? You can pretty easily just write code to convert between C-like and Python-like syntax. Why aren't there IDE extensions that let you write in python syntax and automatically commit the standard syntax.
That was exactly what the .NET family of languages was back in the day. Still is, I guess? You could write in VB, C#, or F#, make use of the same standard library and general principles, but then it would all get compiled to the same IL code in the end.
Transpilers are actually pretty popular in js land, Typescript is a good example. You can even transpile a really different syntax if you wanted to. For example, I use squint which lets me write Clojure syntax and produces js as output.