Error Lab
Every diagnostic below is the real output of ptc, not a mock-up. Pick a mistake, read how the compiler teaches the canonical form, then flip to the fix.
No truthiness
In many languages if 1: silently means "not zero" — a guess. POLYTONE makes the comparison explicit, so intent is visible in the source.
let count = 5
if count:
print("yes")The compiler answers
error: condition must be Bool, found Int — POLYTONE has no truthiness; write an explicit comparison (line 2, column 4)let count = 5
if count > 0:
print("yes")Fixed — and it runs
yes