Skip to contentMenu
- Type System
- Strong static typing with type inference
- Generics and type aliases
- Custom enums with data variants (
ebd1ebd) - Built-in
Maybe (Just/Nothing) and Result (Ok/Err) types (108fdb0) - Type alias resolution in type checking (
2c8b69e) - Structural type unification (
6c25f31) - Compile-time pattern and branch type validation (
195f81a) (f089274) - Functions
- Named functions with type signatures
- Function overloading with different types or arities (
7f69294) (cd5ed88) - Duplicate signature detection (
7f69294) - Lambda expressions with type inference (
fe9b5c9) - Closures with proper environment capture
- Currying and partial application
- Function composition (
>>) - Pipe operator (
|>) - Higher-order function support
- Pattern Matching
- Exhaustive pattern matching with
case expressions - Destructuring for records, tuples, and lists
- Guard clauses (
if conditions in patterns) - Or-patterns and as-patterns (
cb85c29) (0f368d2) - Cons pattern matching (
x :: xs) (3f417ac) - Wildcard patterns
- Operators
- Arithmetic:
+, -, *, /, % - Comparison:
==, !=, <, >, <=, >= - Logical:
&&, ||, not - String concatenation:
++ (1dcd528) - Control Flow
if/then/else expressionscase expressions with pattern matching- Data Types
- Integers and floats
- Booleans (
True/False) - Strings
- Lists
- Tuples
- Records
- Module System
- Inline module definitions
exposing for public exports- Qualified access (
Module.function) - Cross-function calls within modules
- Variables
- Immutable bindings with
let - Variable shadowing in same scope (
b370d29) - Destructuring in let bindings
- Compiler Infrastructure
- Register-based bytecode VM
- String interning
- Arena allocation
- Constant pooling
- Result-based error handling
- Comprehensive error messages with source locations
- Developer Experience
- Benchmark infrastructure with Criterion (
078a18a) - Unified test case system (
72583fb) - Runnable doctests (
d1bed35)
- Lambda type inference for higher-order function overloading (
98bd873) - Scope resolution for cross-function calls within modules (
fae4b05) - Parser bug with function calls in case expression branch bodies (
f782395) - Subtraction overflow in VM tracing when PC is reset to 0 (
7f2c38b) - Record destructuring in subpatterns (
40338c4) - Non-deterministic closure output in
MakeTuple (17dcdd7) - Strong static type checking for lambdas and pipes (
f0248b7)