Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 5 Nov 2026. What's built · Install 0.3.0
jadpo
ReferenceErrors

ErrorsLogic · rule

semantic.unused_result

Value is computed and thrown away.

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

A call stands on its own only when its result is Unit, and a function called on its own does nothing:

example
type Note = Text {}function tidy(note: Note) -> Note {    return note}action save(note: Note) -> Unit {    tidy(note)}
jadpo checkcheck failed: 1 error, 1 file

error This Note is thrown away

--> main.jadpo:8:5

  |8 |     tidy(note)  |     ^^^^^^^^^^ result not used
reason
tidy only computes its result, so calling it without using the result does nothing.
next
Use the value, or remove it (agent)
rule
semantic.unused_result
help
https://jadpo.dev/docs/errors/semantic.unused_result

Markdown for agents: /docs/errors/semantic.unused_result.md.Built from Jadpo main at aee2e8f.