Skip to content

feat(option): use bare Some and None constructors in RustScript - #40

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

fffonion merged 1 commit into
masterfrom
subagent/option-bare-constructors-20261116-6daf157c

Conversation

@fffonion

Copy link
Copy Markdown
Collaborator

Summary

  • Parse Some(value) and None as the canonical RustScript Option constructors and match patterns; reserve these names for constructors while preserving member and map keys.
  • Remove namespaced Option constructor syntax in RustScript, update diagnostics, migrate Core RSS sources and fixtures, and document the change.
  • Cover formatter idempotence, Option inference and matching, legacy non-RSS parsing, and Core VS Code grammar scopes.

Validation

  • cargo fmt -- --check and cargo clippy --locked -- -D warnings
  • cargo test --locked --test option_language_tests --test compiler_tests --test result_native_tests
  • cargo test --locked --lib compiler::format::tests
  • Targeted Option, Result, SQLite, examples, wire, no-std, and wasm tests
  • node --test vscode-rustscript/tests/constructors.test.mjs

This is a breaking RustScript source spelling change. Result constructors and runtime/wire contracts are unchanged.

@fffonion
fffonion merged commit 2f433ed into master Nov 15, 2026
8 checks passed
@fffonion
fffonion deleted the subagent/option-bare-constructors-20261116-6daf157c branch November 15, 2026 18:27
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