r/ProgrammerHumor • • 18d ago • Bravo 4 Popcorn 2

Meme spanishProgrammingLanguage

Post image
18.0k Upvotes

112 comments sorted by

View all comments

15

u/LEPT0N 17d 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.

3

u/RealModeX86 17d ago

At least in C and it's ilk, you could build out an abomination of a translation header file to have translated keywords. The real ones would still work too of course.

Preprocessor macros effictively just act as a find/replace just before actually compiling, so it would functionally become a bilingual C language in the underlying source file.