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

syntax.function_keyword

Function declared with fn, func, def or fun.

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

A function starts with function, not fn, func, def or fun.

example
type Count = Int {    min: 0}fn same(count: Count) -> Count {    return count}
text
error: Jadpo writes `function`, not `fn` --> main.jadpo:5:1  |5 | fn same(count: Count) -> Count {  | ^^ write `function`  reason: `fn` declares a function in Rust; Jadpo starts one with `function`, or `action` when it reads or writes stored data.  next: Use `function` instead of `fn` (agent)  rule: syntax.function_keyword  help: https://jadpo.dev/docs/errors/syntax.function_keywordcheck failed: 1 error, 1 file

Markdown for agents: /docs/errors/syntax.function_keyword.md.Built from Jadpo main at a707efb.