News for hackers. Stuff that matters.
Re:Don't use functions as callbacks unless they're designed ... by username90 on Saturday February 06, 2021 @07:33AM (#26046110)
Yeah, problem with JavaScript function signatures is that every function argument is optional, including all the arguments you didn't write.

In python those functions would look like:

    def F(a = None, b = None, *args): ...
And you can't write any other kind of function in javascript. I don't really like that aspect of javascript, it creates so many hard to debug situations.

There are no comments on this comment yet.