DEV Community

Discussion on: Refactoring: Classes for Everything?

Collapse
 
jwp profile image
John Peters • Edited

Sure in C# functions only live within a class. In Javascript both a class or function are top level.

Sure there are tricks to make the C# function appear to be first class with the "using" statement but they are still required to be defined inside of a class. Why MSFT doesn't fix this is dumb.

Java is the same thing.