Peter said:
...
> Within Velocity I'd like to be able to use just *numbers* and I don't
> want to hazzle around with Integer vs Long vs Float vs ...

+1

this is intuitive, and if/when implemented, will hopefully end the eternal
debate.

...
> The basic question is: Is Velocity supposed to be a *Java*-Template
> Language?

-1

i utterly despise any proposal that involves distinguishing between numeric
types or doing things like casting or instanceof within a template.  :-)

...
> >
> > I keep going round and round in my head about this.  I keep wondering
> > if there is a clean way to introduce this w/o breaking templates.
>
> The easiest way would be to introduce new operators.

-1   uh... no.  please, no.

i'm not opposed to having some minor B.C. breaks in 1.5.  if we make clear
public note of them, then we can just point that out to those who don't pay
attention and coming whining to the user list.

if people are relying on  #set( $foo = 5 / 2 )  to make "$foo" == '2', then
chances are they're doing not-very-proper-designer-ish things to begin with.
even if it's legit stuff, it means that they should be savy enough to repair
their templates when upgrading to 1.5 (assuming we properly warn of this).

thus, i'd also be fine with having 1.5 *eliminate all* whitespace gobbling
by default (with filters optional) and accept a formal syntax for directives
(e.g. #{if}foo#{else}bar#{end}woogie).  these also *may* "break" things for
a small minority, but *will* ease frequent problems/confusions for most.

Nathan Bubna
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to