Re: [whatwg/url] Consider adding a constructor to make a URL from parts (#354)

The problem is you can't build a URL step-by-step. Each part affects the whole. It's not really a sensible operation in the URL data model.

I suggest people just use the following:

```js
Object.assign(new URL("https://example.com/"), { ... pieces go here ... });
```

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

Received on Wednesday, 10 July 2019 20:31:06 UTC