r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

-8

u/loftwyr Mar 20 '24

That makes perfect sense and should be included in every language everywhere.

11

u/bossrabbit Mar 20 '24

Say sike now

10

u/Smayteeh Mar 20 '24

Yes. Having random characters that I didn’t write and are also not present in the code, but that do modify the behaviour of said code is a very reasonable and sane thing to want.

1

u/El_Impresionante Mar 21 '24

Correct! Even exceptions should be handled by this same technique and the exception message should be used as a representation for the passing the "value" of it.

new RegExp(sdfsd) should return /[sdfsd is not defined]/