I stumbled on the exact same issue described at the end of the “The same issue, but with web platform functions” section today, thought it might be worth sharing that article here.
I stumbled on the exact same issue described at the end of the “The same issue, but with web platform functions” section today, thought it might be worth sharing that article here.
It’s good advice for JavaScript because JavaScript really fucked this up. But it’s a bit confused to say “don’t use functions as callbacks unless they were designed for it”.
The problem isn’t really even directly related to callbacks.
A better way to state it would be “don’t pass extra arguments to functions that don’t use use them”.