Comment

Comment by account42

> assert() is just kind of nasty, why use it?

For libraries there is some value in using the standard interface instead of inventing your own that users then have to deal with. I agree that assert() could be better though.

On the other hand, even the C++ stdlib implementations have their own assert handlers so...

parent account42 15 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton