Skip to content

Wyn v1.8 is here. This release focused on stability, developer experience, and making the language feel polished enough to ship real software.

Compiler fixes ​

Over 25 bugs fixed in this release cycle:

  • Float + int auto-promotion - 3.14 + 1 just works
  • Enum match with bare variants - match c { Red => ... } resolves correctly
  • Anonymous closure capture - lambdas passed as arguments capture enclosing variables
  • Impl method return types - var c = a.add(b) infers the correct struct type
  • Spawn with typed parameters - arrays, structs, and strings pass correctly to green threads
  • Array sort fix - was corrupting values due to 32/64-bit mismatch
  • File.read on missing files - returns empty string instead of crashing

New: Color module ​

wyn
println(Color.bold("=== My App ==="))
println(Color.red("Error: not found"))
println(Color.green("Success!"))

10 functions: red, green, yellow, blue, cyan, magenta, gray, bold, dim, underline. All return strings, so they compose naturally.

Tooling improvements ​

  • wyn build reads wyn.toml - just wyn build from your project root
  • wyn new --api - REST API template with SQLite
  • wyn new --web - web app template with HTML + API
  • wyn new --cli - CLI tool template with arg parsing
  • wyn fmt - code formatter with = spacing normalization
  • Error messages - Error at line N: Unexpected token 'X'

Ecosystem ​

  • 40 sample apps (all with wyn.toml + tests)
  • 19 packages published to pkg.wynlang.com
  • 58 site doc pages
  • 9 playground examples with autocomplete
  • VS Code and Neovim plugins updated

What's next for 1.9 ​

  • LSP go-to-definition
  • Ok(x) / Err(msg) sugar (shorter Result types)
  • Multiline strings
  • Cross-platform CI
  • Mobile targets (iOS/Android webview)

Install: curl -fsSL https://wynlang.com/install.sh | sh

MIT License - v1.22.0