|
|
|
|
|
by SoftwareMaven
4793 days ago
|
|
Well, first, there is nothing preventing you from running JS or Java through the C preprocessor (and we did run JavaScript through it at my last job). But there are equivalents for any programming language, but others here have already touched on them. I'm not sure what SQL has built in, but I'd just use the C preprocessor if I needed that. However, I'd much rather not muck with my queries like that, because that will cause nasty surprises in production. And I don't eat carbs, so your off the hook for a cake. |
|
This is an interesting idea! What was the problem you were solving that required this?
---
I think actually the C preprocessor would solve a lot of the problems that, say, SCSS solves too:
There we go, pristine(ish) CSS, unsullied by magic constants and messy prefixes! (note that my preprocessor-fu is weak, I don't know how to do variadic prefixes)