5 ms·
> IMO it's as close as a codebase can be to pure functional programming whilst still functioning. You know, people have put functioning codebases using pure fu
by pyrale 17d ago
> IMO it's as close as a codebase can be to pure functional programming whilst still functioning.
You know, people have put functioning codebases using pure functional programming languages like Haskell, Elm, Purescript, etc. I really don't see what in your opinion is too close to FP to work.
- kodoman 17d agoNot a frontend developer and my frontend skills are lacking, but the argument I think that is being made is that a react component should generally be written with no side effects and rely on signal for state change and do reactive programming. While of course something like Elm is more so this model and actually is functional from the get go. In js/ts react you are writing a lot of code that aims to be side effect free. Most programs code bases of course need some way of doing side effects and not being 100% pure so many haskell projects would not be classed as 100% pure.