Re: [PHP Template] Re: if statements
| From: | Andrei Zmievski | Date: | Tue, 15 Feb 2000 22:34:28 +0000 |
| Subject: | Re: [PHP Template] Re: if statements | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-63@lists.php.net to get a copy of this message | ||
On Tue, 15 Feb 2000, Sanford Redlich wrote:
> I know I'll be sent to programmer's hell for this, but maybe "else"
> isn't
> necessary or a good idea anyway, again because the audience is the
> designers. Having just the "if" statement forces the author to specify
> exactly the case under which the given formatting will be displayed. This
> will be longer, but clearer, and then your "switch" statement equivalent
> becomes a direct extension of the normal syntax. I know it will be clunky,
> but the clarity of intent and syntactic simplicity may make up for that.
I see your point. And I think I like it. :)
> Monte, what's your experience with the designers? Which would they really
> prefer? Especially the beginners?
There's a fine line between giving designers enough tools to do what
they need and totally overwhelming them. {else} might fall into that
category.
-Andrei
* I don't have a solution but I admire the problem. *