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.
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]/
View all comments
Show parent comment
-8
u/loftwyr Mar 20 '24
That makes perfect sense and should be included in every language everywhere.