Description |
PHP Macro Preprocessor should provide functionality similar to the C++ preprocessor facilities, e.g. allow user to make some manipulation with code before interpretation starts.
C++ macro preprocessing is widely used by almost all C++ developers, though it is often considered a C-like feature. It proved itself helpful in practice, so PHP as a very practical language should have similar feature. The main idea is to modify code in certain way even before interpretation starts, and do it more efficiently then it will be done with plain PHP features.
The scope is to enable users to work with macro-names in all possible means. So, the #define, #undef, #ifdef, #ifndef, #else, #endif statements will be implemented. |