12个回答

你认为 C++ 最不应该存在的特性是什么?

举报民科专业户
29个点赞 👍

implicit conversions inherited from C (array-to-ptr, etc.)

inheritance-based dynamic dispatch (i.e. virtual functions), this should be replaced by existential types (virtual concepts in C++ terminology) and unified with concepts

implicit "this" that leads to duplicate const/non-const member functions (fixed in C++23 with deducing this)

发布于 2023-07-27 21:07・IP 属地美国
ll323
自由评论 (0)
分享
Copyright © 2022 GreatFire.org