Repository navigation
wisp compiler toolchain
Wisp v0.40.0 "Dawn"
Language
- Ranges: a..b excludes the end, a..=b includes it. Works in for, case, in and as a Range value.
- Slicing uses ranges too: s[a..b], s[a..=b], s[..n], s[2..], s[..].
- Methods can have their own type parameters: func (*Window w) draw<mem.Allocator A>(A allocator).
Modules
- A folder is a module. private is per file, internal covers the whole project, public is open to all.
- Struct fields are module-private by default.
- Programs are found automatically: every folder with a main is one.
Tooling
- Path dependencies, workspaces, [native] libraries and [export.x].
- wisp update and wisp doctor, install scripts for Linux and Windows, and the toolchain bundled in the packages.
- LSP and formatter support for all of the above.
Breaking changes
- a..b no longer includes the end: use a..=b.
- s[a:b] is now s[a..b].
- shared is now internal, which means the whole project.