Alloy is a superset that combines Rust with the ergonomics and expressiveness of Swift and TypeScript. It aims to provide a more intuitive programming experience while maintaining Rust's safety guarantees and performance.
- More expressive type inference (from Swift and TypeScript)
- Optional chaining and null coalescing operators (from Swift)
- Union types and type narrowing (from TypeScript)
- Trailing closures and Guards (from Swift)
- Explicit side effect tracking
To use Alloy, you need to have Rust's nightly toolchain installed, as it uses the box_patterns
feature which is not yet stabilized.
Alloy is released under the MPL-2.0 License.