Type system
3.1 Primitive Types#
| Type | Description | Example Values |
|---|---|---|
string |
Text | "hello" |
int |
Integer | 42 |
float |
Decimal | 3.14 |
bool |
Boolean | true, false |
date |
Calendar date | 2026-01-15 |
datetime |
Timestamp | 2026-01-15T10:30:00Z |
duration |
Time span | 30s, 5m, 1h |
money |
Monetary value with currency | 1500.00 |
email |
Email address | "user@example.com" |
url |
URL | "https://example.com" |
uuid |
UUID | "550e8400-e29b-41d4-a716-446655440000" |
3.2 Collection Types#
scaicore
1 2 3 4 | |
3.3 Object Types (Inline)#
scaicore
1 2 3 4 5 6 | |
3.4 Named Types#
scaicore
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
3.5 Enums (Compile-Time Checked Symbols)#
scaicore
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
3.6 String Unions (Flexible Matching)#
scaicore
1 2 3 4 5 6 7 8 9 10 | |
3.7 Union Types#
scaicore
1 2 | |
3.8 Optional Types#
scaicore
1 2 3 4 5 | |
3.9 Type Inference#
scaicore
1 2 3 4 5 6 7 8 | |