4 ms·
But on the flip side you can also do "if my_var", which will evaluate to true for any non-nil value and non-false value
by aarbor989 3y ago
But on the flip side you can also do "if my_var", which will evaluate to true for any non-nil value and non-false value
- sodapopcan 3y agoIs that a common source of typing errors? Genuinely wondering as I don't have a whole lot of experience with statically typed languages. I've personally never had a bug related to it. I wasn't meaning to imply everything is perfect, though. For example equality operators take anything. I believe there may be changes coming around there.