by yitosda · 8y ago · 0 comments
1. Act as a preprocessing step for any existing C++ file
2. Output perfectly servicable C++ in the case where you want to move away.
Additions like the "known" keyword make this look badly thought out.
In any case, the weakness of C++ in most cases is compilation speed, not typing speed. Even in the ideal case I can't see this adding more value than it detracts (preprocessing speed + buildsystem complication + extra dependency).
I'm probably a minority in the C++ world, partially because I don't have a powerful IDE, but I tend to write everything in .h and only split it out later on, which gets annoying.
It is in fact able to output perfectly servicable C++ code by simply using a flag (-ex)
CPY also helps with the compilation speed problem by doing a makefile-like compilation, were it only recompiles edited parts of the code.
It can also be used upon complete c++ projects and it would only actually execute the compilation step.