Re: What does "<<<" mean?
| From: | Richard Davey | Date: | Tue, 01 May 2007 18:55:48 +0000 |
| Subject: | Re: What does "<<<" mean? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254200@lists.php.net to get a copy of this message | ||
Greg Donald wrote:
On 4/30/07, Richard Davey <rich@corephp.co.uk> wrote:Do you write digg headlines as a past-time? They're quite keen on sensationlist clap like that.I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especially when embedded deep in classesClasses? PHP is the absolute worst language to do OO programming in. If you like OO, move on to ruby or python, you'll be much happier. Or you can wait around until PHP fully (d)evolves into Java.
All parts of a heredoc statement do not have to be right justified, only the closing line.That'd be the fuck ugly part.
Actually I've got clean code, common-sense itis. Separating code from presentation has been taught in comp sci for decades, and has sod all to do with Web 2.0 / MVC / Ruby / whatever.The frowning surely would be at the mixing of logic and presentation,Sounds like you got MVC-itis. PHP can't really help with that since it's a templating language.
I love me some heredoc syntax: #!/usr/bin/env perl -w $x = <<END; hello world! END print $x;It's just as fuck ugly in properly nested, properly strucutred Perl. The problem isn't the language, it's the way heredoc works. Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window"