Mariano Guerra
Ionuț G. Stan
11/28/2019, 2:35 PMIvan Reese
Ivan Reese
Mariano Guerra
Mariano Guerra
Mariano Guerra
Doug Moen
11/28/2019, 6:49 PMMariano Guerra
Stefan
11/29/2019, 5:19 PMLink
only checking for URL equality (that’s what I would expect from a dedicated Link
class or type) and offering a .toString()
method or something like that to make it super easy to drop down into String
and its comparison behavior.
Leaving some control over what is wanted to the developer seems better than having “magic” behavior that will end up as surprising and unwanted in some cases.
Your http/s example sounds like you might want to offer easy ways to get to parts of the URL (scheme, host, path + components, query) as well so people can easily combine the parts they care for when caching. I’d say http and https are different URLs and treating them the same is asking for trouble, but with easy access to just the host and path you can build a straightforward cache without any confusion.Mariano Guerra
Stefan
11/29/2019, 5:35 PMMariano Guerra
alltom
11/30/2019, 8:33 PMalltom
12/13/2019, 4:14 PM