4 ms·
It's a way to ensure global uniqueness. In the end they're just compared byte-for-byte as strings.
by agwa 2y ago
It's a way to ensure global uniqueness. In the end they're just compared byte-for-byte as strings.
- IshKebab 2y agoPrecisely, so why are they URLs and not something like Java's packages? Or just a URL without the `http:// http://`?
- agwa 2y agoSnarky answer: because they're the W3C and are high on their own supply ;-) But it does allow more flexibility. If you don't want to be tied to a domain name, you can use a URN with a UUID like urn:uuid:4603d9d3-e895-4000-9077-0ab0f2776e1e
- IshKebab 2y agoYou could also just do `com.mydomain.uid.4603d....` if you wanted. But yeah I think your snarky answer is probably more than a little true!