开发者生态
morning
问 HN:您仍然喜欢用 C++ 编码吗?
摘要
In the recent years C++ received a lot of backlash due to its complexity and (perceived) feature creep. However, since C++11 I really enjoyed writing C++ with its strict type system (including const),...
and
the
its
writing
with
for
you
can
templates
that
2026-11-09
1 阅读
约1分钟阅读
hasley
字号:
近年来,C++ 由于其复杂性和(感知到的)功能蔓延而受到了很大的反对。然而,从 C++11 开始,我真的很喜欢用其严格的类型系统(包括 const)、基于范围的 for 循环、智能指针以及模板的功能来编写 C++。另一方面,我知道编写正确的迭代器、正确处理右值引用或读取涉及模板的错误消息可能非常棘手。那么,您喜欢还是不喜欢编写 C++ 源代码?为什么?评论网址:https://news.ycombinator.com/item?id=50423371 积分:12 # 评论:2
这篇文章对您有帮助吗?
订阅66必读
每日精选科技资讯,直达你的邮箱