Hacker News new | ask | show | jobs
by bsimpson 5264 days 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.