Comment

Comment by Panzerschrek

-1 is not -1 for different sizes of integers. Which exact -1 do you want? 32-bit? 64-bit? int-sized (as int is defined in current implementation)? With current approach it's simple, boolean type is expected to have 1-bit size (which is rounded to 8 bits if stored in memory).

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton