5 ms·
AFAIK PHP doesn't provide python-style decorators and never executes code within comments. Can you cite that? Or are you maybe using a framework or library that
by mappu 11y ago
AFAIK PHP doesn't provide python-style decorators and never executes code within comments. Can you cite that? Or are you maybe using a framework or library that's re-parsing your source files?
- EugeneOZ 11y agoPHP never execute comments, be sure. Some frameworks and tools like Doctrine use comments and reflections to prepend comments are annotations, and it's one of the reasons why these frameworks are slow as hell.
- dvirsky 11y agoYeah you're right, my bad, I vaguely remembered it but it was a framework I was using, not the language itself. Still stupid anyway.