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

I'm not a big fan of folks resurrecting closed issues. Please consider filing a new issue in the future if there's something you wish to discuss.

As for your question, I don't think that's the only case where `URL.canParse()` is useful. E.g., if you have to decide whether to store a given string based on whether or not it parses as a URL. `URL.canParse()` is nice there as it doesn't require allocating any `URL` object.

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

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

Received on Wednesday, 17 April 2024 14:12:07 UTC