Logic
How you write what your app does: functions and actions, variables and
constants, statements, operators, match, attempt and loops, and what
Jadpo allows for passing functions, recursion and generic code.
| Functions and actions You write behaviour in three kinds of callable. |
| Variables A variable never changes unless you write |
| Constants A |
| Statements A body is a list of statements, one on each line, with no semicolons. |
| Expressions and operators "Widening" is one type standing in for another it is built on (When one type can stand in for another). |
| Match
|
| Attempt A call that can fail must say so where it is called. |
| Loops
|
| Passing functions You can pass an inline function only as an argument to a standard-library operation, such as |
| Recursion A function may call itself, or form a cycle with other functions. |
| Generic code Only the standard library is generic ( |
What is built says which of this works today.
Markdown for agents: /docs/logic.md.Built from Jadpo main at aee2e8f.