-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aryeh Gregor wrote:
On Thu, Sep 25, 2008 at 6:36 PM, Roan Kattouw
<roan.kattouw(a)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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkjdF3YACgkQwRnhpk1wk45QiQCeInGtclK4KByAzvPK3mJNswZB
0ZIAoIFDt8EQ1hgkiaC2TRyNA+S5H/ew
=F/Wt
-----END PGP SIGNATURE-----