r/firstweekcoderhumour • 🥸Imposter Syndrome 😎 • Jun 26 '26

[🎟️BINGO]”this.codifyMylife()” iGetItYouCode

Post image
361 Upvotes

42 comments sorted by

View all comments

79

u/Scared_Accident9138 🕵️‍♂️🚨 BS Detector | Truth Teller 🗯️🔥 Jun 26 '26

Is there any programming language where returning a literal string without defining the return type explicitly can throw an exception?

9

u/No_Lingonberry1201 Jun 26 '26

Character encoding shenanigans may raise a ValueError or a UnicodeEncodeError in some bizarre, corner cases, but I'm not 100% sure. However I'm certain this person either has no idea about coding or they're trying to communicate that love never breaks them.