@item
More compact strings encoding is more important than more compact
integers. Short strings are often used as a keys in maps and as
-algorithm identifiers. Huge quantity of integers can be met only in very
+algorithm identifiers. Huge quantity of integers can be met only in a
specialised use-cases, where you will likely use own specialised format
with fixed integers for faster loading. For example in most cases
cryptography related tasks do not involve integers at all in their formats.
@itemize
@item Hardly you will find wide range of CBOR libraries supporting
strict validation of deterministically encoded CBOR structures.
-@item I can not take tagged string/integer as a viable first-class
+@item Tagged string/integer can not be taken as a viable first-class
bigint/datetime data support, because many decoders do not support tags
and won't be able to interpret/validate them.
@end itemize
readable language somewhere nearby.
For being able to streamingly generate the serialised data, you have to
-worry about map's keys ordering. Remember that it is length-first one.
+worry about @ref{MAP}'s keys ordering. Remember that it is length-first one.
-By default binary data is expected to be encoded as BIN. If you expect
-to deal with huge amounts of data, then probably you should use the BLOB
-type. Generally you have to differentiate field names for ordinary
-strings and blobs.
+By default binary data is expected to be encoded as @ref{BIN}. If you
+expect to deal with huge amounts of data, then probably you should use
+the @ref{BLOB} type. Generally you have to differentiate field names for
+ordinary strings and blobs.
For relatively small structures it could be wise to use reasonably short
key names. However it may be difficult and not obvious to keep the
be made that way:
@verbatim
-sig: {"a": "ed25519", "v": bytes(...)}
+sig: {a: "ed25519", v: bytes(...)}
@end verbatim
@code{"t"} can be used as short name for the "type".
guessing the context of the data inside.
If you really desire more compact encoding, even agree to use schema
-definitions, then think about replacing MAPs with LISTs. Non-present
-values can be indicated by NIL tag.
+definitions, then think about replacing MAPs with @ref{LIST}s. Non-present
+values can be indicated by @ref{NIL} tag.