3 ms·
Well now you have us curious: What programming language treats methods as something other than what is ultimately a function with an additional implied paramete
by randomdata 2y ago
Well now you have us curious: What programming language treats methods as something other than what is ultimately a function with an additional implied parameter? Whether a parameter is implicit or explicit doesn't really change anything with respect to the state of the program. You need to construct the state either way.
- sroussey 2y agoIndeed, in JS you can call the method with the object explicitly (which allows you to call one objects method with a different object—for better or worse, though usually some meta-programming).