Data Types
9 types: Null, Bool, Int (i64), Float (f64), String, IntList, FloatList, StringList, Point. No implicit coercion.
Scalar Types#
| Type | WorldCypher Literal | Example |
|---|---|---|
| Null | null | null |
| Boolean | true, false | true |
| Integer | numeric literal | 42 |
| Float | decimal literal | 3.14 |
| String | single-quoted | 'hello' |
Collection Types#
| Type | Description |
|---|---|
| IntList | List of integers |
| FloatList | List of floats |
| StringList | List of strings |
Type Coercion#
WorldCypher does not perform implicit type coercion. Comparing an Int to a String
returns no match — it does not error or cast.
See Also#
- Types Reference — full Rust type inventory
Try it
Open ↗⌘↵ to run
Loading engine…