Comment

Comment by unexpectedtrap

>It definitely is a bad convention because it's highly surprising.

You know that `Nat` represents non-negative numbers, and you see that `1 - 2` does not produce a compile error. What value do you expect then? What’s so surprising about choosing zero as a default value here? Do you expect it to panic or what?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton