News for hackers. Stuff that matters.
Re:Scala isn't fun anymore by cube2222 on Tuesday September 13, 2022 @11:21AM (#32825483)
That's a matter of opinion. Many, me included, very much like the current, very explicit, approach.

I understand why people who like monadic constructs don't like it though.

Re:Scala isn't fun anymore by seer-zig on Wednesday September 14, 2022 @03:20AM (#32834215)
Re:Scala isn't fun anymore by kaba0 on Tuesday September 13, 2022 @11:47AM (#32825856)
I don’t know — I don’t claim that algebraic datatypes are the only proper way to handle errors, I’m okay with exceptions as well (even checked ones). But what go has is only very slightly better than C’s attempt, so I’m not sure it is that subjective.
Re:Scala isn't fun anymore by cube2222 on Tuesday September 13, 2022 @01:18PM (#32827292)
I think the presence of multiple return values and the ability to easily use complex types for errors make a huge difference (adding wrapping messages, context, etc.).

I agree algebraic data types could improve this. I don't think monadic result types or exceptions would be an improvement.