News for hackers. Stuff that matters.
Re:The Cost of Exception Handling by rr808 on Saturday November 12, 2022 @09:33AM (#33573396)
I think the move to FP cements my view that exception handling is more trouble than its worth. Golang is good too that it doesn't use exceptions except in the extreme. Java with checked exceptions was kinda fashionable for a while but is now unloved. Down with exceptions!
Re:The Cost of Exception Handling by pencilguin on Saturday November 12, 2022 @10:48AM (#33574141)
Confirmation bias is always common, but not a thing to boast of.
Re:The Cost of Exception Handling by sanxiyn on Saturday November 12, 2022 @11:36AM (#33574641)
I am not sure what FP you are talking about. Exception is core feature of ML and pervasive in OCaml standard library, for example.
Re:The Cost of Exception Handling by hinkley on Saturday November 12, 2022 @12:04PM (#33574886)
I haven’t been watching the benchmarks lately but for quite some time OCaml was notable for being nearly as fast as C. No other function friendly language was even close.
Re:The Cost of Exception Handling by yCombLinks on Saturday November 12, 2022 @12:27PM (#33575122)
I don't see how wrapping everything in Try is significantly different than wrapping things in catch blocks at the end of the day. I see more people complaining about checked exceptions than I actually see them being used anyways.
Re:The Cost of Exception Handling by gpderetta on Tuesday November 15, 2022 @05:17AM (#33607389)
At the end of the day it always boils down to continuations.