Comment

Comment by georgerobinson

> Safer languages is a good place to start.

Could (and should) a safer language pre-empt that you should first check strlen(str) != 0 before doing strcmp? I know of no language which does this.

> Input validation can be made to be machine-verified

Likewise, can you elaborate on this? How does the machine know what type of input this is? If input is tagged by the developer, what's to stop the developer from forgetting to tag the input correctly?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton