RE: [PHP] Re: Inspiration for a Tombstone.
| From: | tedd | Date: | Fri, 27 Jun 2008 17:21:44 +0000 |
| Subject: | RE: [PHP] Re: Inspiration for a Tombstone. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276075@lists.php.net to get a copy of this message | ||
At 9:52 AM -0500 6/27/08, Boyd, Todd M. wrote:
I think you guys are missing something: he wrote it with single equals signs on purpose. He was demonstrating how the one with the constant to the right of the assignment operator is a valid statement... and that putting the constant first will aid you in finding such mistakes.No question -- I missed the intent. But in my defense, a single equal sign in an if statement stands out like a red flag to me and thus I really don't need help finding it. When my code craters, it's usually for things other than that. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com