Re:The problem with new URL(), and how URL.parse() fixes that
by teaearlgraycold on Monday May 20, 2024 @11:48AM
(#40416801)
Not all exceptions are checked. This kind of ruins the whole point. IllegalArgumentException for example is very common and would be what you’d use for a bad input to something like new URL(). So it’s a very common exception to see, maybe second only to the NPE, and yet it won’t be checked. What the fuck is the point then?
[ Parent
| on HN ]
There are no comments on this comment yet.