News for hackers. Stuff that matters.
Re:The Flix Programming Language by mrkeen on Sunday November 26, 2023 @06:27AM (#38420829)
Haskell makes it a compile-time issue.

If you declare a function effect-free, and try to perform effects inside it, then you'll get a compiler error.

You are still allowed (and it's common practice!) to declare your functions as effectful.

Unfortunately the 'signal' of this message is often lost in the noise: For every Haskeller happily writing effects, there's 9 non-Haskellers writing that 'Haskell's big mistake was being pure and not allowing effects - you should use X instead'.

There are no comments on this comment yet.