Logic · rule
syntax.named_argument_equals
Named argument written with =.
Area 3, Logic; not declinable; the next step is usually the agent's.
A named argument is name: value.
type ItemPrice = Decimal { scale: 2 min: 0.00}type People = Int { min: 1}function share(total: ItemPrice, people: People) -> ItemPrice { return ItemPrice(decimal.divide(total, people, rounding = Rounding.half_even))}
error: Jadpo names an argument with `:`, not `=` --> main.jadpo:11:61 |11 | return ItemPrice(decimal.divide(total, people, rounding = Rounding.half_even)) | ^ write `:` reason: `name = value` names an argument in Python, Kotlin and C#; Jadpo writes `name: value`. next: Use `:` instead of `=` (agent) rule: syntax.named_argument_equals help: https://jadpo.dev/docs/errors/syntax.named_argument_equalscheck failed: 1 error, 1 file
Markdown for agents: /docs/errors/syntax.named_argument_equals.md.Built from Jadpo main at a707efb.