logoalt Hacker News

loup-vaillantyesterday at 1:17 PM1 replyview on HN

> I'm baffled as to why you would want to use macros to emulate c++.

I like the power of destructors (auto cleanup) and templates (generic containers). But I also want a language that I can parse. Like, at all.

C is pretty easy to parse. Quite a few annoying corner cases, some context sensitive stuff, but still pretty workable. C++ on the other hand? It’s mostly pick a frontend or the highway.


Replies

CyberDildonicsyesterday at 3:51 PM

There was a language called clay that was C compatible but had move semantics, destructors, templates and operator overloading.