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!
[ Parent
| on HN ]
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.
I am not sure what FP you are talking about. Exception is core feature of ML and pervasive in OCaml standard library, for example.
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.