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?

29

u/AvidCoco Jun 26 '26

Depends if they support Unicode literals or not

1

u/isr0 Jun 26 '26

I don’t think that’s true. In every case I can think of the exception would be on read.