Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Modules come from ML linage.

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: