Skip to content

docs(spec): define bare Some/None constructors and Option patterns - #2

Merged
fffonion merged 1 commit into
masterfrom
feat/option-bare-constructors-20261116
Nov 15, 2026
Merged

fffonion merged 1 commit into
masterfrom
feat/option-bare-constructors-20261116

Conversation

@fffonion

Copy link
Copy Markdown
Contributor

Summary

  • Define Some(...) and None as the canonical RustScript Option constructors and logical Option match patterns; reserve these names in expression and pattern positions.
  • Retire RSS Some(TypeName) runtime type-pattern interpretation while documenting the preserved legacy behavior of other dialects.
  • Update language examples, TextMate constructor scopes, and the Option/Result contract fixture and static assertions.

Verification

  • node --test --test-skip-pattern="executes the fixture" tests/option-result-contract.test.mjs (8 passed)
  • node --check tests/option-result-contract.test.mjs
  • TextMate JSON parsed with Node; git diff --check passed.
  • Fixture execution awaits the corresponding Core parser changes and a compatible pd-vm-run binary.

@fffonion
fffonion merged commit d982016 into master Nov 15, 2026
4 checks passed
@fffonion
fffonion deleted the feat/option-bare-constructors-20261116 branch November 15, 2026 18:30
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