aboutsummaryrefslogtreecommitdiffstats
path: root/examples/toggle.aup
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-30 06:41:41 +0100
committereunhhu <[email protected]>2026-09-30 06:41:41 +0100
commitc69682e1f1bc73e2b1f4a22b8eb3ec463be588e3 (patch)
treec181b50fedf6b306b4a53d06d305d4be24bcb94e /examples/toggle.aup
parentaa279fb959024134416fc33f90f648d8332e9af4 (diff)
downloadaup-c69682e1f1bc73e2b1f4a22b8eb3ec463be588e3.tar.gz
aup-c69682e1f1bc73e2b1f4a22b8eb3ec463be588e3.zip
Spread an item or a message into a record or a send, and set an item whole
Adding one field to the board two nodes share (Pure's research 105) still meant the record, the output, three sends and the code applying what the other node sent: the sends and the apply named every field. ..source, last in a record value's or a send's braces, gives the fields not written from the source's fields of the same names: an item (an index, a let, the item a for walks, list[key]) or the handler's message (grouped fields by their paths). A record value gives what the source lacks its default; a send still needs every field. list[i] = Record { ... } sets every field of the item, all of them given; a keyed list's key does not change, so a value with another key fails the event (limit) and changes nothing. Both are the fields written out: the checks compare the modules byte for byte, and run the key rule in pure-run. Seven diagnostics: a spread not last, a source that is no item nor this handler's message (also another handler's message), a spread inside a send's group, a send field left empty, a whole item missing a field, a value that is no record. The board now sends { ..at } and applies cards[k] = Card { ..remote }: a new field is written in two places, the record and the output.
Diffstat (limited to 'examples/toggle.aup')
0 files changed, 0 insertions, 0 deletions