note 100906 deleted from language.oop5.constants by danbrown

From: Date: Sun, 14 Nov 2010 16:03:36 +0000
Subject: note 100906 deleted from language.oop5.constants by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174023@lists.php.net to get a copy of this message
Note Submitter: Jax ---- A few comments about the comment below: 1. I don't know that it's fair to say that "most people" miss the point of constants. 2. Another important purpose for constants, IMHO, is to make code more readable but avoiding "magic" numbers (values that someone trying to understand the code is likely to wonder about). 3. In fairness to "John Galt", the comment does NOT say that his example declares an array, it says it's a work-around for making a constant that contains array data.

« previous php.notes (#174023) next »