this post was submitted on 27 Feb 2025
98 points (99.0% liked)

Programmer Humor

33996 readers
462 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] HiddenLayer555@lemmy.ml 1 points 1 week ago (2 children)

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.

[–] jcg@halubilo.social 3 points 1 week ago

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.

[–] yogthos@lemmy.ml 2 points 1 week ago

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.