Re: PEAR CS poll

From: Date: Fri, 08 Oct 2004 07:08:17 +0000
Subject: Re: PEAR CS poll
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33696@lists.php.net to get a copy of this message
On Oct 8, 2004, at 2:44 AM, Ammar Ibrahim wrote:
I do agree too. But Sometimes when doing Variable interpolation, in my opinion it's ok to use double quotes
I'm pretty sure you have to use double quotes to do variable interpolation. My point is that variable interpolation is never necessary and in, my opinion, never good idea. I think it is typically more readable to do something like: 'some text' . $variable . 'some more text' rather than: "some text $variable some more text" or even "some text {$variable} some more text" The reason? Syntax highlighting in text editors. With my method, the variable gets lit up in a different color than the text. I'd like to see this part of the CS, but that's just my preference. -ryan
e.g:      "Hello World" is NOT ok
"Hello {$username}"; is ok Ammar Ibrahim
------------------- "There are only the pursued, the pursuing, the busy and the tired." - The Great Gatsby http://theryanking.com

« previous php.pear.dev (#33696) next »