Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
micfort1377yYes, but you can use any language, including C, as preprocessor for any language. Because all languages has a basic output, so they can generate the other language, which is just simple text.
If it is useful and your preprocessor will be handy, I don't think so. Probably a text template engine is the better way to go. -
ChappIO46977yWould be useful if you are generating client libraries from wsdls or something like that.
-
Mora like a template engine than an preprocessor. In some situations this feature is very useful and one I like the most
-
omom13617yMy God.. 😰 I'll be sick! The benefits of using C is it's speed! The exact contrary of PHP! so just why!??!
-
@omomthings you wouldn't use PHP in place for a compiled C program. The idea here is to use PHP to generate the text files containing C syntax, instead of manually typing the C code yourself. After this "preprocessing" you would compile the code into a fast binary executable.
One usecase could be to do a big unrolled loop with a PHP script instead of typing the same statement a gazillion times yourself.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
elgringo41Student - Teacher renaming .c to .exe make the program executable ? Teacher - Yes A group of people stand up...
-
Korvax31Italian chef: We have the best spaghetti in the world PHP developer: I doubt that
I'm not a php dev but can this be done ?
undefined
c
php