There are a few issues pending that we should talk about. Some came
from watching turbine list, some from discussion (thanks, Fedor).
1) What do we do about determining if a reference is null in VTL?
Currently, we can use #if(), but that's misleading - if the reference is
in the context, is a boolean, and is false, than we get the same result
as if the thing wasn't in there. So thats no good. So we need
something that is clear about what it does, and what the result means.
Some suggestions :
- use something like : #if( $foo == null )
I like this one, but Fedor noted we might want to keep
the concept of null out of things, although I think it
is a keyword in javascript, so it isn't that foreign.
- or #ifdefined( $foo ) or #ifdef( $foo )
This is trivially easy to do.
- or another operator : #if( ?$foo )
2) Should we allow the following aliases for the logicals :
logical AND : '&&' (current), '&', 'AND', 'and'
logical OR : '||' (current), '|', 'OR', 'or'
equality : '==' (current), '=', 'eq' ?
Since there is little or no chance of offering bitwise operations in
VTL, this might remove some confusion with designers (if there is any).
I am indifferent tending to negative on this, as I am so used to them
being different in Java, C++, C, etc, but for designers, that might not
be a problem.
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Velocity : it's not just a good idea. It should be the law.
http://jakarta.apache.org/velocity