Comment

Comment by btown

Does Rust have something like a deep-codemodding macro that could be used to un-panic-fy an entire function etc. automatically?

Something like: Given a function, rewrite its signature to return a Result if it doesn't already, rewrite each non-Resulty return site to a Some(), add a ? to every function call, then recurse into each called function and do the same.

parent btown 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton