MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1bjjkm6/arejsdevsactuallysane/kvwdngi/?context=3
r/ProgrammerHumor • u/jarulsamy • Mar 20 '24
554 comments sorted by
View all comments
Show parent comment
1
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]/
new RegExp(sdfsd)
/[sdfsd is not defined]/
View all comments
Show parent comment
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]/