4 ms·
Seems like most languages where you'd use this already have macros?
by empath75 8y ago
Seems like most languages where you'd use this already have macros?
- hyperpape 8y agoGo doesn't, and I know that some people have suggested using code generation in lieu of generics.
- empath75 8y agoit doesn't have macros, but it does have code generation.
- nedbat 8y agoC++ macros can't read a configuration file to generate code (at least I don't want to know that they can!). And Cog works in any text file, so it can be used for languages (like HTML) that don't have macros.
- a1369209993 8y agoThey kind of can, via #include, but the configuration file has to be in a particular format and you're limited in what you can do with it.