Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Logic

Logic · rule

type.ordering_operand

Values cannot be ordered.

Area 3, Logic; not declinable; the next step is usually the agent's.

A nullable value has to be matched before it can be compared:

example
type Count = Int {}type Flag = Bool {}function over_maximum(count: Count?, maximum: Count) -> Flag {    return Flag(count > maximum)}
text
error: `count` may be `none`, so it can't be ordered --> main.jadpo:6:17  |6 |     return Flag(count > maximum)  |                 ^^^^^ may be `none`  reason: `count` is `Count?`; `<`, `<=`, `>` and `>=` order two values, and `none` has no place in an order.  next: Match on `count` and compare inside `some(...)` (agent)  rule: type.ordering_operand  help: https://jadpo.dev/docs/errors/type.ordering_operandcheck failed: 1 error, 1 file

Markdown for agents: /docs/errors/type.ordering_operand.md.Built from Jadpo main at a707efb.