News for hackers. Stuff that matters.
Re:Unix and Multics by condensedtea on Saturday May 11, 2024 @07:13AM (#40327428)
Sounds a lot like error handling in Golang :)
Re:Unix and Multics by tazu on Saturday May 11, 2024 @08:54AM (#40327750)
Yes, and in prod I have a recover() handler that sends me an email with stack trace. Haven't gotten one in a few years...
Re:Unix and Multics by kstrauser on Saturday May 11, 2024 @10:19AM (#40328248)
Somewhere a spam filter thinks stack traces look like viagra ads.
Re:Unix and Multics by vsnf on Saturday May 11, 2024 @09:30AM (#40327925)
Yes, except for the "defining them upfront" part, which sounds similar in theory to checked exceptions in Java. I'm very partial to this, especially in Go, where nobody ever bothers to propagate errors properly and instead just bubbles up the same `err` object all the way to the top.