News for hackers. Stuff that matters.
Re:Software development topics I've changed my mind on after... by tome on Thursday February 06, 2025 @09:35AM (#42962712)
Effect systems such as Bluefin (my own) and effectful allow you to have multiple possible exception effects in scope without having to cram them all into one type (with some sort of "variant" or "open sum" type). It's a very pleasant way to work!
Re:Software development topics I've changed my mind on after... by nsm on Thursday February 06, 2025 @12:54PM (#42964771)
Aren't checked exceptions the same as effect systems in the narrow case of error handling?
Re:Software development topics I've changed my mind on after... by valcron1000 on Thursday February 06, 2025 @06:28PM (#42967550)
I haven't had the time to play with Bluefin (I'll get to it eventually!) but I did try out effectful. In the later I've only used the `Fail` effect since most of the time I just want to bail out when some invariant is broken. In my experience these fine-grained errors don't provide much value in practice but I understand the appeal for some.