Hot Language
Hot is an expression-oriented language for backend workflows. It keeps JSON-shaped data familiar, uses functions instead of infix operators, and provides flows for conditional and concurrent work.
Quick Example
::myapp::hi ns
greet fn (name: Str): Str {
`Hello, ${name}!`
}
message greet("Hot")
What Looks Different
| Other Languages | Hot |
|---|---|
name = "Ada" | name "Ada" |
a + b | add(a, b) |
if (x) { } else { } | if(x, then, else) or cond { x => then => else } |
f (x) | f(x): a call has no space before ( |
return value | The final expression is the value |
for x in items | map(items, ...) or for-each(iter, ...) |
How Hot Evaluates
Within a single run or task attempt, Hot keeps two concepts separate: eager versus lazy controls when an argument evaluates (a lazy parameter defers one argument until do, separate from lazy sequences in Iter), while serial versus parallel controls how a flow schedules its body (ordinary function bodies run serially; parallel is always explicit).
Hot uses immutable values and expression-oriented control flow, but it is not a pure language: HTTP, files, stores, tasks, and events happen in ordinary functions without effect tracking.
| Concern | Default | Explicit alternative | Reference |
|---|---|---|---|
| Bindings and values | Immutable lexical bindings | Name reuse and deep paths produce new bindings | Vars and Values |
| Function arguments | Evaluated before the call | lazy parameter forced with do | Functions |
| Function bodies | Implicit serial flow | parallel, cond, match, and other flows | Flows |
| Failure | Bound Result stays intact; ordinary consumption propagates Err | Result parameters (is-err) or match inspect explicitly | Error Handling |
| Types | Gradual checking with structural records and tagged constructors | Annotations narrow contracts; Any stays dynamic | Types |
Language Guide
- Vars and Values - Bindings, namespaces, immutable values, and deep paths
- Data Literals - Strings, numbers, vectors, maps, templates, and comments
- Functions - Functions, calls, lambdas, and lazy parameters
- Metadata - Annotations on functions, types, and bindings
- Types - Gradual typing, constructors, enums, unions, generics, and coercions
- Constraints -
wherepredicates on types, parameters, return values, and bindings - Error Handling - Results, propagation, and explicit failure handling
- Flows - Serial, conditional, matching, pipe, and parallel flows
- What Hot Doesn't Have - Conventional syntax and constructs that Hot replaces