3 ms·
That's the weirdest argument I have heard against Haskell so far. Re-factoring is the single best thing in Haskell IMO. 90% of cases are 1/ change type 2/ fix f
by teh 10y ago
That's the weirdest argument I have heard against Haskell so far. Re-factoring is the single best thing in Haskell IMO. 90% of cases are 1/ change type 2/ fix fall-out 3/ done.
- hacker_9 10y agoIf I add a new member to a type, because of immutability, if I change the member it means I have to think about creating new instances all the way up the chain. And then in turn handling how that change propagates out. It makes for more hassle and time needed to make changes compared to just having mutable instances.
- nbouscal 10y agoNot quite sure what you're talking about but it sounds like you want lenses. Mutability is definitely not less hassle or time if you account for the dramatic difference in error rates and maintenance costs.
- montanonic 10y agoIf you add a new member to a type aren't you usually describing new behavior? Isn't it sensible to have to implement that behavior everywhere?
- codygman 10y agoWhat language don't you have to do that in where not doing so also won't change behavior and result in an error?