Re: [PHP Template] Re: if statements

[email protected] (Andrei Zmievski)
Newsgroups php.template
Message-ID <[email protected]>
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. *
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.