Re:Cloudflare outage on November 18, 2025 post mortem
by lenkite on Wednesday November 19, 2025 @12:39AM
(#45976241)
Linting is not good enough. The compiler should refuse to compile the code without it marked with an explicit annotation. Too much Rust code is panic happy since using casual use of `unwrap` is perma-etched into everyone's minds by the amount of demo code out there using unwrap.
[ Parent
| on HN ]
Re:Cloudflare outage on November 18, 2025 post mortem
by drexlspivey on Wednesday November 19, 2025 @03:10AM
(#45977020)
!#[deny(unwrap_used)] at the top of the file would take care of it.
Re:Cloudflare outage on November 18, 2025 post mortem
by pdimitar on Wednesday November 19, 2025 @01:16AM
(#45976416)
I completely agree. But IMO Rust would have not gained traction if it was as strict. It would be branded as an academic toy language.
But now after we are past that and it has a lot of mind share, I'd say it's time to start tightening the bolts.