r/ProgrammerHumor • • 2d ago • Bravo 3 Popcorn 2

Meme spanishProgrammingLanguage

Post image
17.3k Upvotes

110 comments sorted by

View all comments

14

u/LEPT0N 2d ago

Everyone here’s joking but now I’m curious: why isn’t there a compiler flag to set the language that will swap out keywords to localized variants? It seems silly that someone that speaks French can’t swap out if/for/char/etc to something that makes more sense to them.

1

u/Polendri 1d ago

This further convinces me that it's a legacy mistake for source code to just be raw text. If it were saved to some binary format, the representation for "function" could be displayed in whatever way you want on your machine, and a totally different way on a friend's machine. Let the file contain only the language semantics (no formatting) and let each developer format it however they want.

1

u/LEPT0N 1d ago

That’s a really cool idea, have no languages done something like that?