This is true, but I believe that in modern JS implementations, the performance difference isn't as large as one might expect.
The similarity to Python is limited to syntax — I just wanted to raise the point that in both Python and prototype-free JS, higherOrderFunction(object.method) does what it looks like it will do.
Comments
This is true, but I believe that in modern JS implementations, the performance difference isn't as large as one might expect.
The similarity to Python is limited to syntax — I just wanted to raise the point that in both Python and prototype-free JS, higherOrderFunction(object.method) does what it looks like it will do.