News for hackers. Stuff that matters.
Re:Leaving Haskell Behind by kccqzy on Thursday August 24, 2023 @01:01PM (#37251467)
And what's wrong with the kitchen sink monad pattern? I've certainly used exactly that. And I have no problems with it.
Re:Leaving Haskell Behind by rowanG077 on Thursday August 24, 2023 @01:11PM (#37251630)
Because your code is very much overconstrained at that point. For the same reason you don't add a `Num a` constraint to list `head` function. You have now essentially fused your function to your codebase.
Re:Leaving Haskell Behind by kccqzy on Thursday August 24, 2023 @01:15PM (#37251693)
That's not a problem in business logic heavy code. Requirements change and you could use previously unnecessary constraints at any time.