TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Fare: Metaprogramming from the ground up: avoid C

4 pointsby rplevyover 16 years ago

3 comments

qwphover 16 years ago
<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 未加载
fpover 16 years ago
"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.
wheelsover 16 years ago
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.