Skip to content

ScarScript v1.0.3 — Loop Control, Structs, Option/Result & Modules

Latest

Choose a tag to compare

@zawiyarawan zawiyarawan released this 23 Nov 05:54
· 8 commits to main since this release

ScarScript v1.0.3 focuses on core stabilization, bug fixes, structured data modeling, safe error/null handling, loop flow control, and multi-file modules while preserving clean syntax and native Go performance. Expression-level match is scheduled for an upcoming release.

What's New & Fixed in v1.0.3

  • Bug Fixes & Stability: Resolved critical compiler, lexer, string interpolation, and runtime edge cases to make core execution reliable (match deferred to a future release).
  • Loop Control Flow: Added continue, break, and stop with loop-depth validation and clear compile-time diagnostics.
  • User-Defined structs: Added struct declarations, literal instantiation, field access, and field mutation on mut bindings.
  • Option<T> & Result<T, E>: Added Some(value), None, Ok(value), and Err(error) along with .isSome(), .isNone(), .isOk(), .isErr(), .unwrap(), .unwrapErr(), and .unwrapOr(...).
  • Module System (import / export): Added relative .scar module imports, export declarations, and circular dependency detection.

Quality & Verification

  • Verified with go build, go vet, go test, and gofmt -l ..
  • Updated CLI version string (1.0.3), build scripts, CHANGELOG.md, and README.md.

Full Changelog: v1.0.2...v1.0.3