Anne van Kesteren (2014-01-13T10:45:26.000Z)
In a discussion I had with Alex Russell as how to do comparison for
URL objects it ended up with desiring

  url == url2

to work. It escaped me at that point that I already discussed this
briefly and Brendan explained why face-to-face. However, I forgot what
he said :/

The alternative, either something like

  url.equals(url2)

or

  URL.equal(url, url2)

or

  url.toString() == url2.toString()

is somewhat Java-esque. Is that what we should do? And if so, opinions
on which variant?


-- 
http://annevankesteren.nl/
forbes at lindesay.co.uk (2014-01-15T15:39:38.795Z)
In a discussion I had with Alex Russell as how to do comparison for
URL objects it ended up with desiring

```js
url == url2
```

to work. It escaped me at that point that I already discussed this
briefly and Brendan explained why face-to-face. However, I forgot what
he said :/

The alternative, either something like

```js
url.equals(url2)
```

or

```js
URL.equal(url, url2)
```

or

```js
url.toString() == url2.toString()
```

is somewhat Java-esque. Is that what we should do? And if so, opinions
on which variant?