5 ms·
Avid Haskeller here. It really depends on the domain. I find OOP to be a really good abstractions for building GUIs, a domain that FP falls short, FRP nonwithst
by xiaolingxiao 6y ago
Avid Haskeller here. It really depends on the domain. I find OOP to be a really good abstractions for building GUIs, a domain that FP falls short, FRP nonwithstanding. I've been using Swift to build mobile apps on iOS and I find its OOP abstraction a joy. So there's a data point there.
- lights0123 6y agoAlthough, many modern UI frameworks (basically every popular JS framework) are based around composition, and don't even support inheritance.
- ahartmetz 6y agoI would really like to hear your opinion about the problems of FRP (for GUIs, in case there are other popular uses). I use C++ and QML, a "declarative" (it's a somewhat fuzzy concept) language, for GUI programming daily. I have a bunch of techniques in C++ to tame mutable state, including use of a quasi-functional style where possible. More... "functionality" seems like a good idea in general, hence my curiosity what doesn't work.