Jon Stevens wrote:
> 
> on 8/28/01 11:10 PM, "Bojan Smojver" <[EMAIL PROTECTED]> wrote:
> 
> > Time to assign the Scarab guy to Tigris site... Just teasing... ;-)
> >
> > Bojan
> 
> He is.
> 
> The Tigris site was done before he was hired. The next revision of the
> Tigris site will use the unified CSS between Scarab and our core product
> which Tigris is an installation of.
> 
> Needless to say, I still haven't been convinced of the need to add float's
> and the more I think about it and the more examples people give, the less
> inclined I am to give it a positive vote.

As far as I can tell, your main objections are along the lines of
increased complexity of Velocity, MVC screwups, type casting issues etc.

Typing problems come from the fact the Java is a strongly typed language
and float != int != long != double != short. Totally understandable and
I don't think anything like that should be introduced.

I think a few people hit it with suggestions that there shouldn't be
floats, doubles, ints, longs etc. but just numbers (along the lines of
other weakly typed languages like Javascript). That's where my (stupid)
BigDecimal suggestion was coming from.

The other approach would be even 'softer', kind of like a shell, where
any Velocity reference would be able to participate in arithmetic
operations. For instance:

----------------------------------------
#set ($a = "3.0")
#set ($b = "4.0")
#set ($c = $a / $b)
----------------------------------------

or:

----------------------------------------
#set ($a = "3")
#set ($b = "4.0")
#set ($c = $a / $b)
----------------------------------------

or:

----------------------------------------
#set ($a = 3)
#set ($b = 4.0)
#set ($c = $a / $b)
----------------------------------------

If you screw yourself up and write:

----------------------------------------
#set ($a = "not a number")
#set ($b = "4.0")
#set ($c = $a / $b)
----------------------------------------

or even more stupid:

----------------------------------------
#set ($a = $ref.getThatWrongHashtable())
#set ($b = "4.0")
#set ($c = $a / $b)
----------------------------------------

value of $c just becomes 'NaN' or something, and then even integers can
be dropped (I hope Geir doesn't live close to Sydney :-)

As I said before, I can live with or without it...

Bojan

Reply via email to