Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ahh... MalformedURLException is checked in Java and is a source of constant backlash from developers - for over 20 years :)


I prefer the Optional.of and Optional.ofNullable approach. Analogous there should be URL.of and URL.ofChecked, the latter for potentially unkown input. Same for Charset.


malformed urls have always been the issue, not the exception




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: