Re: [whatwg/url] Editorial: adopt Infra number definitions (and redo IPv6 pieces) (PR #838)

@rmisev commented on this pull request.



> +<p>An <dfn export id=concept-ipv6>IPv6 address</dfn> is a <a for=/>128-bit unsigned integer</a> that
+identifies a network address. This integer is composed of a <a for=/>list</a> of 8
+<a for=/>16-bit unsigned integers</a>, also known as an <a for=/>IPv6 address</a>'s
+<dfn export for="IPv6 address" id=concept-ipv6-piece>pieces</dfn>.

This definition is obscure: it is not clear how to convert a 128-bit integer to a list of pieces and vice versa. Also, all algorithms use an IPv6 address as a list of pieces, not as a 128-bit integer. By the way, RFC4291 defines an IPv6 address slightly differently: "IPv6 addresses are 128-bit identifiers...". So I think it is better to use the RFC4291 definition - replace "unsigned integer" with "identifier":
> An IPv6 address is a 128-bit **identifier** that identifies a network address. This **identifier** is composed of ...


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/838#pullrequestreview-2455254248
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/838/review/2455254248@github.com>

Received on Friday, 22 November 2024 17:57:41 UTC