Better HN
topnewbestaskshowjobs
Log inSign up

_wkd2

1 karma · joined Jun 14, 2026 (5mo ago) · 3 submissions

Submissions

comment 6y ago · link · parent

A properly formed modern C++ program doesn’t really use memcpy. Most idioms from the C language have a much stricter counterpart that is part of the C++ language.

You’ve made a few comments now about a language that you don’t seem to actually use or know.

comment 6y ago · link · parent

I’m not sure what you’re talking about, to be honest. First, what does this have to do with the type system? Second, C++ typically uses vectors, which know exactly where they end, with the option to use an indexing into them that will throw an exception if you try to access them out of their range. C certainly does not have that.

comment 6y ago · link · parent

The C++ type system is vastly stricter than C.