diff options
| author | eunhhu <[email protected]> | 2026-09-30 05:59:09 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-30 05:59:09 +0100 |
| commit | aa279fb959024134416fc33f90f648d8332e9af4 (patch) | |
| tree | b8640d24f0700d82798fac2c9378c281c0b4cdda /docs/design/001-language-v0.md | |
| parent | e5716bd108039982d55bcd3b2da25e9f28b5825a (diff) | |
| download | aup-aa279fb959024134416fc33f90f648d8332e9af4.tar.gz aup-aa279fb959024134416fc33f90f648d8332e9af4.zip | |
Write a message once for its output and the input that takes it
Growing a board two nodes share (Pure's research 105), one field took
five places, two of them the same list: the output a node sends its
changes on and the input it takes the other's with. A message may now
take the fields of a message input or output declared before, in their
order: input remote = message like changed.
The module is the same as with the fields written out, byte for byte
(checked). An unknown name, one that is no message, the message itself,
and an output taking an input's rows are diagnosed.
Diffstat (limited to 'docs/design/001-language-v0.md')
| -rw-r--r-- | docs/design/001-language-v0.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/design/001-language-v0.md b/docs/design/001-language-v0.md index 3fe9ff8..305838e 100644 --- a/docs/design/001-language-v0.md +++ b/docs/design/001-language-v0.md @@ -123,6 +123,10 @@ on edit { `send 이름 { 필드: 값, 그룹: { 필드: 값 } }`으로 모든 필드를 한 번씩 주어 보낸다. 보냄은 이벤트의 일부라서 이벤트가 실패하면 보내지 않았고, 호스트는 저장된 보냄만 전한다. 무엇이 받는지는 앱 밖(호스트의 배선)이 정한다. 받는 앱은 같은 메시지를 여러 번 받아도 한 번만 적용한다(Pure `docs/research/078-app-connections.md`). 출력에는 핸들러가 없다. +- `message like 이름`은 앞에 선언한 메시지 입력이나 출력의 필드를 그 순서대로 갖는다. 다른 노드가 보내는 것을 받는 입력과 + 제 출력을 한 번만 적는다(`output changed = message { ... }`, `input remote = message like changed`). 필드를 적은 것과 + 같은 모듈이 나온다. 노드 사이에서는 필드를 이름으로 받으므로(Pure `docs/design/014-fields-by-name.md`) 순서가 달라도 + 되지만, 같은 모양이면 옮기는 일이 없다. - 외부 API의 응답은 보통의 메시지 입력으로 받는다. 호스트가 출력의 응답을 그 입력에 이으면(`pure-serve --reply 출력=입력`), 필드는 응답 JSON에서, 응답에 없는 필드는 보낸 메시지의 같은 이름 필드에서, `http_status: u32`는 상태 코드로 채워진다 (Pure `docs/research/083-delivery-over-http.md`). |
