3 ms·
I'm wondering if the solution to my problem could be to start using F#, which seems to encourage a data-oriented style over an object-oriented style, while stay
by ngrilly 2y ago
I'm wondering if the solution to my problem could be to start using F#, which seems to encourage a data-oriented style over an object-oriented style, while staying in the same C# and .Net ecosystem. F# has a concept of modules, holding all executable code and data. They elegantly replace C# static classes, and are mapped to static classes in the CLR.
- pjmlp 2y agoModules come from ML linage. https://smlhelp.github.io/book/docs/concepts/modules/ https://smlhelp.github.io/book/docs/concepts/modules/ However they aren't as powerful, because ML modules are the way to do OOP like stuff, via what is called functors. F# as .NET language naturally has other mechanisms for this, hence why it is a basic module concept, more in the linage of Modula-2 modules.