Hacker News new | ask | show | jobs
by im3w1l 391 days ago
I think the "correct" way to do it at a language level is for the compiler to construct the URI at compile time when possible. The successful construction proves that it cannot throw exceptions and hence they don't need to be handled.