Re:What killed Haskell, could kill Rust, too
by codygman on Thursday September 10, 2020 @09:31AM
(#24432169)
> In my humble opinion, those two things are equal in difficulty and consequences.
I'm not so sure, I'll give this idea some thought though.
> I had almost the same number of bugs in my ML application that I would have in the imperative program, but they manifested in different ways.
Can you talk about some of the different ways the same bug manifested?
Re:What killed Haskell, could kill Rust, too
by axilmar on Friday September 11, 2020 @04:53AM
(#24440500)
I didn't say 'the same bug manifested in different ways', I said 'same number of bugs but manifested in different ways'.
I.e. the defect ratio was similar, bugs in my FP program were of different type than in the imperative ones.
I have dealt with ML while doing my MSc in software engineering, and wrote my dissertation on it.
I didn't see any improvement regarding bugs and state.
What I have discovered in functional languages is that while in fp you are not required to keep track of mutable states, you are required to keep track of values passed in parameters.
In my humble opinion, those two things are equal in difficulty and consequences.
I had almost the same number of bugs in my ML application that I would have in the imperative program, but they manifested in different ways.
I don't think FP requires the programmer to keep less things in their head, provided that the imperative program follows some good principles, that is.