Hacker News new | ask | show | jobs
by jeffbee 1422 days ago
There's a solid argument in here but it feels like there must be a better example. Can we think of a function that does something worth doing, in a way that programmers of all these languages would actually use, and that sets a subtle trap for C++ programmers? When I read this article all I see is a useless function that contains a completely obvious trap which, yes, Rust prevents, but also just thinking at all would have prevented.

Another small thing: the C++ in this article looks weird to C++ programmers because it qualified vector with std, but does not qualify move.