TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Fare: Metaprogramming from the ground up: avoid C

4 点作者 rplevy超过 16 年前

3 条评论

qwph超过 16 年前
<i>But that doesn't mean it is impossible to write trivial harmful metaprograms in CPP, as is easily demonstrated in my counter-example die_die_stupid_c_compiler.c</i><p>I'm slightly disappointed that<p><pre><code> gcc -E die_die_stupid_c_compiler.c </code></pre> didn't die, although it did produce about 750k of output, which is quite impressive...
评论 #305471 未加载
fp超过 16 年前
"Like Perl, C++ is a swiss army chainsaw of a programming language. Unlike Perl, it's got all the blades simultaneously and permanently cast in a fixed half-open position. Don't turn it on."<p>Priceless.
wheels超过 16 年前
Uhm, I find this post kind of uninspired. Did it really require experimental verification to show that meta-programming in C probably wasn't a good idea?<p>I find this sort of argument in general a bit straw-man-ish. They use a programming language for something it's not suited for and then reflect that back on the programming language.