Re: [SMARTY] Smarty-Light
| From: | boots | Date: | Wed, 14 Jul 2004 22:23:15 +0000 |
| Subject: | Re: [SMARTY] Smarty-Light | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11590@lists.php.net to get a copy of this message | ||
--- Vonleigh Simmons <nospam@illusionart.com> wrote:
> > because I didn't like some of the syntax issues (backticks for
> > concatenation? why not use the PHP and Perl method of putting a dot
> > between strings?)
>
> I have to agree with that. The dot between strings is much more
> friendly. Any idea why it's not in smarty?
Because of BC, I suppose. Smarty already uses dot-notation for
array-key access. Dot-notation concatenation doesn't really have a long
history in other languages, though it might be a surprise for people
with only PHP. Also, unlike PHP, Smarty doesn't require literal strings
to be quoted which complicates the matter. Backticks are actually more
similar to PHP's {} string replacer.
I guess we all have something that niggles at us in these regards.
What I don't like is the -> notation for attributes/methods instead of
dot notation. (oh yeah, and modifiers can't have white spacing)