2 ms·
I think the argument is that static methods are just functions, they are not strongly tied to a class or it's objects, so then let's not have two kinds of entit
by rolisz 4y ago
I think the argument is that static methods are just functions, they are not strongly tied to a class or it's objects, so then let's not have two kinds of entities (normal functions and static methods) that do the same thing.
Class methods are a weird thing that can be used to affect all objects of a class, so are kinda global in a sense, which is why they should be avoided.
- peteradio 4y agostatic methods are nice for clarifying scope