Re: [whatwg/url] Proposal: URL.isValid (Issue #713)

Are there numbers available for how expensive the try/catch approach is, and how this would improve things? If a performance argument is being made, I think it's important to quantify it.

As for the ergonomics of try/catch, perhaps that's something that should be solved at the language level? For instance, some languages have a `try?` feature which returns nil on error. Would this be useful for other, non-URL APIs?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/713#issuecomment-1306525617
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/713/1306525617@github.com>

Received on Tuesday, 8 November 2022 02:18:41 UTC