3 ms·
He wants top level functions. He wants to not have to write classes if he thinks the domain doesn't need modelling as objects.
by oblio 7y ago
He wants top level functions. He wants to not have to write classes if he thinks the domain doesn't need modelling as objects.
- arethuza 7y agoYou can have static classes that can contain nothing but static members - so effectively a namespace with no instantiation of that class allowed so no objects.
- oblio 7y agoI know, but many people dislike boilerplate code.
- manigandham 7y agoYou can use a static class though. It's 1 class that then just behaves like a namespace and doesn't need any object modeling.
- jmkni 7y agoYou could create an F# class library, put your functions in there, and then call them from C#?
- e12e 7y agoThey probably wants to not have to write classes if he thinks the domain doesn't need modelling as classes. Objects are just initialized memory with a vtable, or actors that sends and receives messages...