I would just generally stay away from anything that wasn’t typed language. I’ve been there and don’t like it. But when I have to I have enough experience to see where the pitfalls are.
I deal with a legacy system where one of the previous programmers really liked text string booleans. My isTrue tests for true, "true", 1, "1", "yes", and "on".
View all comments
Show parent comment
14
u/Steerider Mar 15 '22 edited Mar 15 '22
If your code (or data) is such that you need to do such things (I've been there), you write an
isTrue()function