Skip to content

[codex] Clarify streaming interpolation macros - #58

Merged
bobzhang merged 1 commit into
mainfrom
codex/clarify-streaming-interpolation-macros
Jun 3, 2026
Merged

[codex] Clarify streaming interpolation macros#58
bobzhang merged 1 commit into
mainfrom
codex/clarify-streaming-interpolation-macros

Conversation

@bobzhang

@bobzhang bobzhang commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Clarifies the MoonBit guide section for <+ and <? streaming interpolation macros.

Details

  • Shows valid <? right-hand-side forms instead of an arbitrary identifier expression.
  • Documents that <? skips writes for None and applies the <+ expansion for Some(writer).
  • Calls out the additional writer methods required for map object literals: write_object_begin, write_object_field, and write_object_end.

Validation

  • git diff --check
  • moon run -e '...' snippet covering <+ template strings, <+ map object literals, <? template strings, <? map object literals, and None no-op behavior.

@bobzhang
bobzhang marked this pull request as ready for review June 3, 2026 12:24
@bobzhang
bobzhang merged commit 77725aa into main Jun 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant