3 ms·
Code written in Haskell is only safe if the authors of such code take advantage of the features that the language provides to write safe code. Haskell makes it
by tome 6y ago
Code written in Haskell is only safe if the authors of such code take advantage of the features that the language provides to write safe code. Haskell makes it ergonomic to write safe code, not mandatory. It turns out that the authors of Haskell's Prelude 30 years ago didn't get things quite right. We're still dealing with that today and it takes time and effort to fix things.
- bird_monster 6y agoI understand your point. My question, though, is: for what languages is this statement not true: " < language > is only safe if the authors of such code take advantage of the features that the language provides to write safe code "
- tome 6y agoIt's not a binary classification of "Haskell safe, everything else unsafe". It's a gradation. Haskell provides more such features and more ergonomically (goes the claim, and it's one I happen to agree with).
- andi999 6y agoWell, while python still has 2 or 3 gotchas, I think it can be called safe (now the question for me arises what do we actually mean by safe).