SplitScript reference / Migration / Variable declarations

Variable declarations

Migration from C#, JavaScript, Rust

Source pattern

  • JavaScript: const

  • C#: var

  • Rust: mut

Canonical SplitScript

  • const becomes let.

  • var becomes let.

Use the canonical language and API symbols linked below.

Semantic difference

Use one inferred let declaration; SplitScript has no const/let split.

Supported hosts

This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.

  • let (language)

The compiler also recognizes source-only syntax that should be removed rather than replaced.

  • Remove mut.