On Sun, 2007-08-05 at 07:38 -0600, Wade Preston Shearer wrote:
> How does SMARTY make things easier to read?
> 
> How is…
> 
> {$name}
> 
> …any easier than…
> 
> <?$name?>
> 
> …?
> 
> I think using SMARTY is a lot more complicated approach. You have to  
> learn an entirely new language/syntax and then try to keep things  
> straight switching back and forth between the two.

Well actually, Smarty semantics are a sub-set of PHP semantics so there
really isn't much to learn.  I  personally find the notational
difference to be just enough to remind me whether I'm working on the
presentation or the business logic.

You should compare that difference to the difference between PHP and any
strongly typed language, say C/C++/Java, where is a lot more
significant.  But then I've programmed in about two dozen languages over
the years so keeping the difference straight isn't that big a deal.

-- Walt




_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to