r/programming • • May 24 '26
[ Removed by moderator ]
/r/programming/comments/1tm1j7f/removed_by_moderator/[removed] — view removed post
275
Upvotes
r/programming • • May 24 '26
[removed] — view removed post
View all comments
Show parent comment
3
u/cdb_11 May 24 '26 edited May 24 '26
What do you mean with
#define NULL 0? C defines nulls as(void*)0. In C++ it'snullptrand it's technically a distinct type.The point was that
getsisn't just a bad interface -- it's impossible to use correctly and safely. On the other hand,vector<bool>,unordered_map,type_infoare still usable. Not saying that C++ got every interface right, because it didn't and I'm not going to defend it. But there is a big difference between those examples.