- 主题:[转载]Linus Torvalds 称 C++ 是一种很烂的语言
"LOL," was his response. "C++ solves _none_ of the C issues, and only makes things worse. It really is a crap language.
"For people who don't like C, go to a language that actually offers you something worthwhile. Like languages with memory safety and [which] can avoid some of the dangers of C, or languages that have internal GC [garbage collection] support and make memory management easier.
"C++ solves all the wrong problems, and anybody who says 'rewrite the kernel in C++' is too ignorant to even know that."
He said that when one spoke of the dangers of C, one was also speaking about part of what made C so powerful, "and allows you to implement all those low-level things efficiently".
Torvalds added: "While I think GC [garbage collection] is a wonderful thing for programming simplicity, it's generally not necessarily something you can do in a low-level system programming. So I'm not saying 'integrated GC' is good for OS kernels, but it's a very good thing in most other situations."
https://itwire.com/open-source/rust-support-in-linux-may-be-possible-by-5-14-release-torvalds.html
--
FROM 112.47.122.*
这是哪一年的老黄历了。
虽然现在的C++比那时候复杂度又提升了一个数量级。。
--
FROM 73.63.209.*
这段话是这几天喷的。换了个新姿势喷 cpp.
【 在 allegro (静水流深) 的大作中提到: 】
: 这是哪一年的老黄历了。
: 虽然现在的C++比那时候复杂度又提升了一个数量级。。
--
FROM 112.47.122.*
最高指示:C++是一种很烂的语言
【 在 hgoldfish 的大作中提到: 】
: 这段话是这几天喷的。换了个新姿势喷 cpp.
:
--
FROM 73.63.209.*
太好了,不用纠结了
【 在 hgoldfish 的大作中提到: 】
: "LOL," was his response. "C++ solves _none_ of the C issues, and only makes things worse. It really is a crap language.
: "For people who don't like C, go to a language that actually offers you something worthwhile. Like languages with memory safety and [which] can avoid some of the dangers of C, or languages that have internal GC [garbage collection] support and make memory management easier.
: "C++ solves all the wrong problems, and anybody who says 'rewrite the kernel in C++' is too ignorant to even know that."
: ...................
--
FROM 61.148.244.*
嗯,我终于为自己始终学不好C++找到了原因。
【 在 hgoldfish (老鱼) 的大作中提到: 】
: "LOL," was his response. "C++ solves _none_ of the C issues, and only makes things worse. It really is a crap language.
: "For people who don't like C, go to a language that actually offers you something worthwhile. Like languages with memory safety and [which] can avoid some of the dangers of C, or languages that have internal GC [garbage collection] support and make m
: "C++ solves all the wrong problems, and anybody who says 'rewrite the kernel in C++' is too ignorant to even know that."
: ...................
--
FROM 125.35.5.*
屁股决定脑袋,Linus主要是针对kernel programming而言的。
C++的有些特性并不适合kernel programming,最明显的例子是exception,其次是vtbl这种码农不可控的东西。
OOP刚兴起的年代,C++能兼容C,能完成C能搞的大部分工作,还有OOP支持,流行是正常的。
C++设计为基本全兼容C,本就不是为了解决C的那些问题而生的(或者说只是为了解决用C搞OOP编码开发效率太低的问题)
--
修改:z16166 FROM 221.218.161.*
FROM 221.218.161.*
嗯,就像盲人摸象,只能“看见”自己摸到的那部分。
不过C++确实很烂
【 在 z16166 的大作中提到: 】
: 屁股决定脑袋,Linus主要是针对kernel programming而言的。
: C++的有些特性并不适合kernel programming,最明显的例子是exception,其次是vtbl这种码农不可控的东西。
: OOP刚兴起的年代,C++能兼容C,能完成C能搞的大部分工作,还有OOP支持,流行是正常的。
: ...................
--
FROM 58.33.198.*
十几年前就开始骂了吧
【 在 hgoldfish 的大作中提到: 】
: "LOL," was his response. "C++ solves _none_ of the C issues, and only makes things worse. It really is a crap language.
: "For people who don't like C, go to a language that actually offers you something worthwhile. Like languages with memory safety and [which] can avoid some of the dangers of C, or languages that have internal GC [garbage collection] support and make memory management easier.
: "C++ solves all the wrong problems, and anybody who says 'rewrite the kernel in C++' is too ignorant to even know that."
: ...................
--
FROM 14.23.144.*
大神的话和他的代码一样犀利。
cpp过度设计了,企图大而全,实际杂而乱,看看标准教材的厚度就知道了。妈的还要再往里加东西 。。。。。。
【 在 hgoldfish 的大作中提到: 】
: "LOL," was his response. "C++ solves _none_ of the C issues, and only makes things worse. It really is a crap language.
: "For people who don't like C, go to a language that actually offers you something worthwhile. Like languages with memory safety and [which] can avoid some of the dangers of C, or languages that have internal GC [garbage collection] support and make memory management easier.
: "C++ solves all the wrong problems, and anybody who says 'rewrite the kernel in C++' is too ignorant to even know that."
: ...................
--
FROM 54.156.254.*