Comment

Comment by none_to_remain

The size overhead of that is 2*sizeof(int) while the overhead of null termination is sizeof(char). If I remember the standard right, the former is worse by at least sizeof(char), and usually more in practice. This used to matter, sometimes still does.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton