MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w8a68g/nitpickyrustcompiler/p873m8s/?context=3
r/ProgrammerHumor • u/ninja_with_ocd • Sep 05 '26
17 comments sorted by
View all comments
1
Is it worst than TypeScript where if you declare that a variable could contain "Apple", "Banana" or "Orange" in refuses to compile saying "Sorry bro, there is no case where your function returns Apple so your code is invalid"?
View all comments
1
u/DT-Sodium Sep 06 '26
Is it worst than TypeScript where if you declare that a variable could contain "Apple", "Banana" or "Orange" in refuses to compile saying "Sorry bro, there is no case where your function returns Apple so your code is invalid"?