RE: PHP Standard style of writing your code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2006-05-02 at 09:03, Ford, Mike wrote:
>
> As you might have guessed, I *HATE* curly brackets with a vengeance, which is why I eschew both those styles and use PHP's alternative syntax:
> 
>   if (...):
>      if (...):
>        // mmh
>      else:
>        // oh
>      endif;
>      while (...):
>        if (...):
>          // oh
>        else:
>          if (...):
>            // where am i?
>          else:
>            // huh!?
>          endif;
>          // hmm
>        endif;
>      if (...):
>        if (...):
>          // blah
>        endif;
>      // blah
>      endif;
>   // blah
>   endif;
> 
> Just beeeautiful!  And, oh look, all the end tags tell me which kind of start tag they should match.  And the compiler.  Which leads to much more focussed error messages when you cock your structure up.  I can't remeber the last time PHP told me I had a syntax arror at the end of the file -- if I've got unbalanced start/end tags, the error message usually points to a line in the middle of the file, slap bang in the target area.

Dearh Mike,

You appear to have found a PHP mailing list when in fact your code
appears to be VB. Please search the net for a more appropriate mailing
list.

*hahahah -- runns away cackling*

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux