Search Results
7/17/2025, 7:44:36 PM
>>105938566
Pure FP sure. But you don't even have to go full OOP like OCaml, Rust is a good example on how to use FP style in performant way. It was inspired by OCaml too.
>>105938590
Of course you can do it sanely. I'm just saying that the implication that FP typically produces more code than OOP is just plainly wrong, it's the other way around. OOP comes with unavoidable declarations that generally take quite a lot of LoC, while FP can often be reduced to absurdly small sizes.
Pro tip: the current meta is to use OOP to structure your data/responsibility and FP to express how to manipulate that data.
Pure FP sure. But you don't even have to go full OOP like OCaml, Rust is a good example on how to use FP style in performant way. It was inspired by OCaml too.
>>105938590
Of course you can do it sanely. I'm just saying that the implication that FP typically produces more code than OOP is just plainly wrong, it's the other way around. OOP comes with unavoidable declarations that generally take quite a lot of LoC, while FP can often be reduced to absurdly small sizes.
Pro tip: the current meta is to use OOP to structure your data/responsibility and FP to express how to manipulate that data.
Page 1