4 ms·
I'm not sure I'm following your objections at all - if this is implicit, then you don't need it, correct? > Static methods in the same class are impossible. Yo
by thelazydogsback 6y ago
I'm not sure I'm following your objections at all - if this is implicit, then you don't need it, correct?
> Static methods in the same class are impossible. You can't have two methods with the same signature, static or otherwise.
I never said anything about having both at once -- I was talking about refactoring - changing the location of where the fn was defined - from a method to a static. (As one does if it turns out you're not using any object state.)
Of course, some languages let you call static's on the same class with 'this' and some can only reference instance methods.