-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Aryeh Gregor wrote:
On Thu, Sep 25, 2008 at 6:36 PM, Roan Kattouw roan.kattouw@home.nl wrote:
I think he means that typos in those constants are noticed better, because mistyping a constant constitutes a syntax error while mistyping a string doesn't.
Mistyping a constant isn't a syntax error in PHP. It's a runtime error.
A runtime error still gives you more useful information while developing and debugging than silently passing through a string which, at some unspecified future time, doesn't do what you expected.
- -- brion