Forgot to say:

* Constants for numeric codes are great as they make the code a whole lot
easier to read:

$error_level:=5

Well that's good to know...I guess. Is that good or bad? With a custom
consant:

$error_level:=Error level is fatal

Oh, that makes more sense.

* Constants for strings as they make @$%@#$%@#% stupid errors from typos a
thing of the past, well, at least where they use them. This is super
helpful when working with property names in C_OBJECT. (Really what we need
are definable schemas for C_OBJECT contents that the compiler checks -
custom types - but that's a whole different discussion.)

More examples? Good uses?
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to