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 = valuenames an argument in Python, Kotlin and C#; Jadpo writesname: value.- next
- Use
:instead of=(agent) - rule
- syntax.
named_ argument_ equals - help
- https://jadpo.
dev/docs/errors/syntax. named_ argument_ equals
Markdown for agents: /docs/errors/syntax.named_argument_equals.md.Built from Jadpo main at aee2e8f.