aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-27 07:30:51 +0100
committereunhhu <[email protected]>2026-09-27 07:30:51 +0100
commit1a72fe031a007323c51f49810dcf6164b8aaaae2 (patch)
treeb170926648e20c8570c137231096313ac4e4fe4a /examples
parent49324b0a75549960af0a13b1d884eaac637312ef (diff)
downloadaup-1a72fe031a007323c51f49810dcf6164b8aaaae2.tar.gz
aup-1a72fe031a007323c51f49810dcf6164b8aaaae2.zip
Group message fields: to: { city: text }, read as ship.to.city
A message's field block may hold groups, nested as deep as the 31 characters of a path allow; the compiler flattens them into fields named by their path (to.city), which Pure's module format takes, so groups cost nothing at run time. A member chain on a message names a field by its path; one that stops at a group, or names a field the group lacks, is diagnosed, and a field's own member (m.text.bytes) still reads the field. A module may have 64 message fields. The JSON server check posts 100 random bodies with groups two deep (members shuffled at every level, strings with escapes, control bytes, Korean, emoji and U+2028) to pure-serve, which reads them in place, and compares the answers and the table with a Python model; a group's fixed field from the query and ten malformed group bodies are checked too. Six diagnostics cover groups.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions