Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mkleczek
on May 20, 2024
|
parent
|
context
|
favorite
| on:
The problem with new URL(), and how URL.parse() fi...
Ahh... MalformedURLException is checked in Java and is a source of constant backlash from developers - for over 20 years :)
chopin
on May 20, 2024
|
next
[–]
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.
_ZeD_
on May 20, 2024
|
prev
[–]
malformed urls have always been the issue, not the exception
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: