3 ms·
If you're using macros for metaprogramming in C, you've outgrown the language and are ready for a more powerful C replacement.
by WalterBright 4y ago
If you're using macros for metaprogramming in C, you've outgrown the language and are ready for a more powerful C replacement.
- Spivak 4y agoUnless you need it to be in C because you’re targeting platforms only supported by a C compiler or because you’re writing a library and want different languages to have FFI.
- WalterBright 4y agoWith D you can interface seamlessly to C, in both directions. D works fine at presenting a C interface any C code can use.
- LanternLight83 4y agoI've never thought about it that way before, and suppose that it applies to any language with a two-way FFI (including more diverse languages like, well, just Guile Scheme off the top of my head, but insure there are more-- I'm sure someone could really benefit from a list of languages that can essentially target C like this)
- tpoacher 4y agoyou mean, like, assembly?
- tpoacher 4y ago"A witty quote proves nothing." ~ Voltaire