4 ms·
Static methods are a thing - all they need is a "module"-like unit to hold them, but no that's not the "smallest unit" in any real sense.
by zozbot123 8y ago
Static methods are a thing - all they need is a "module"-like unit to hold them, but no that's not the "smallest unit" in any real sense.
- LandR 8y agoIn a language like C# you still need to put those static methods in a class. Even extension methods need to go in a class (albeit a static class). It would be nice if you could define functions that lived in a namespace.
- sparkie 8y agoJust treat the static class with static only member as if it were a namespace. C# now even has support for omitting the need to type the class name because you can import it as if it were a namespace (`using static`). Seems like a trivial complaint.