6 ms·
Casting with Number is also acceptable. I don't understand why he would recommend unary as a replacement for casting. It obfuscates the intent of your code, w
by bsimpson 15y ago
Casting with Number is also acceptable.
I don't understand why he would recommend unary as a replacement for casting. It obfuscates the intent of your code, which is especially concerning since this reads like a guide for beginners.