Simplify illustrative example

This commit is contained in:
Tony Garnock-Jones 2023-10-15 01:21:59 +02:00
parent 202d92d237
commit 486528416d
1 changed files with 5 additions and 7 deletions

View File

@ -81,13 +81,11 @@ serializing in some other implementation-defined order.
ordering is required. ordering is required.
[^not-sorted-semantically]: It's important to note that the sort [^not-sorted-semantically]: It's important to note that the sort
ordering for writing out set elements and dictionary key/value ordering for writing out set elements and dictionary key/value pairs
pairs is *not* the same as the sort ordering implied by the is *not* the same as the sort ordering implied by the semantic
semantic ordering of those elements or keys. For example, the ordering of those elements or keys. For example, the `Repr` of a
`Repr` of a negative number very far from zero will start with negative number sorts lexicographically *after* the `Repr` of zero,
byte that is *greater* than the byte which starts the `Repr` of despite being semantically *less than* zero.
zero, making it sort lexicographically later by `Repr`, despite
being semantically *less than* zero.
**Rationale**. This is for ease-of-implementation reasons: not all **Rationale**. This is for ease-of-implementation reasons: not all
languages can easily represent sorted sets or sorted dictionaries, languages can easily represent sorted sets or sorted dictionaries,