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 LanguagesHot
name = "Ada"name "Ada"
a + badd(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 valueThe final expression is the value
for x in itemsmap(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.

ConcernDefaultExplicit alternativeReference
Bindings and valuesImmutable lexical bindingsName reuse and deep paths produce new bindingsVars and Values
Function argumentsEvaluated before the calllazy parameter forced with doFunctions
Function bodiesImplicit serial flowparallel, cond, match, and other flowsFlows
FailureBound Result stays intact; ordinary consumption propagates ErrResult parameters (is-err) or match inspect explicitlyError Handling
TypesGradual checking with structural records and tagged constructorsAnnotations narrow contracts; Any stays dynamicTypes

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 - where predicates 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