Skip to content

Comment on Bringing runtime checks to compile time in Rust

Comments

I was annoyed by having to write the same boilerplate code over and over again to handle "failures" that would never actually occur, so I took matters into my own hands and came up with what I think is a pretty elegant (if slightly complicated) solution. As it turns out, the architecture of this solution can be applied to other issues!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.