On Mon, Mar 26, 2012 at 12:36 AM, Nikhil G. Daddikar <
ngd@...> wrote:
> Hello,
>
> I was looking at Velocity syntax and have a few questions.
>
> What is use of parenthesis in the #set directive: #set ($x = 1) Why not
> simply: #set $x = 1 ?
Why do you ask? Is there some reason that a space is superior to a
parenthesis? The latter is easier for my eyes to parse, but Sergiu is
quite right that consistency with other places where parentheses are
more obviously useful is the key reason.
> Another question is regarding curly braces: What is the use of curly braces
> in the directives? E.g. #{set} ($x = 1)
>
> I am sure there are good reasons, just would like to know why.
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
user-unsubscribe@...
> For additional commands, e-mail:
user-help@...
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
user-unsubscribe@...
For additional commands, e-mail:
user-help@...