News for hackers. Stuff that matters.
Re:Conc: Better Structured Concurrency for Go by Groxx on Thursday January 12, 2023 @08:34PM (#34362860)
That's a style decision, not a correctness issue. You are claiming it is a correctness issue.
Re:Conc: Better Structured Concurrency for Go by preseinger on Thursday January 12, 2023 @09:02PM (#34363067)
It is absolutely a correctness issue. Panics do not provide safety guarantees that generalize enough that it is safe to arbitrary recover from them. The statement in the previous sentence is not a subjective opinion, it's a statement of fact. I'm not sure how else to convey this information.
Re:Conc: Better Structured Concurrency for Go by Groxx on Friday January 13, 2023 @02:46AM (#34365011)
Panics do not violate any runtime guarantees, and defers run in the presence of panics.

All safety guarantees possible if there were no panics are possible with.

Re:Conc: Better Structured Concurrency for Go by preseinger on Friday January 20, 2023 @01:01PM (#34457022)
When some bit of code invokes `panic` it is saying that there is an error which is unrecoverable, and the default expectation is that the process will terminate. There is no way to assert that panics do not violate runtime or memory model expectations. They can.