syntax.equality_operator
Comparison written with another language's operator.
Area 3, Logic; not declinable; the next step is usually the agent's.
type Count = Int { min: 0}type Done = Bool {}function sold_out(count: Count) -> Done { return Done(count === 0)}
error Jadpo compares with ==, not ===
--> main.jadpo:8:23
|8 | return Done(count === 0) | ^^^ write `==`
- reason
===and!==compare without converting types in JavaScript and TypeScript; Jadpo's==and!=never convert between types, so there is no stricter form to ask for.- next
- Use
==instead of===(agent) - rule
- syntax.
equality_ operator - help
- https://jadpo.
dev/docs/errors/syntax. equality_ operator
Markdown for agents: /docs/errors/syntax.equality_operator.md.Built from Jadpo main at aee2e8f.