Exceptions in BPF
Exceptions in BPF
Posted Jul 22, 2023 9:15 UTC (Sat) by softball (subscriber, #160655)In reply to: Exceptions in BPF by jezuch
Parent article: Exceptions in BPF
A core difference is: BPF looks to treat throws as success-by-default (rc 0), Rust panics are failure-by-default. Rust panics have to be caught explicitly. My experience with Rust is limited so far, but catching panics seems rare and unidiomatic: there's already featureful error handling available (Result type), so any panics are usually serious enough to not be handlable.
