[stringtemplate-interest] need a null value for arguments?
Udo Borkowski
ub at abego-software.de
Mon Aug 1 07:10:00 PDT 2011
Not sure about the semantic of null.
E.g. assume you have this template
t(s="world") ::= "Hello <s>"
What will
<t(null)>
render?
a) "Hello " (i.e. same as <t("")>)
b) "Hello world" (i.e. same as <t()>)
c) "Hello null"
d) something else?
Also: to avoid confusion with the Java null maybe call the constant 'undefined'?
Udo
On 31.07.2011, at 21:03, Terence Parr wrote:
> Hi, we have true/false but I think we need null too. i have a function called from two places and I need one to say "no value" as an arg.
>
> [sorry i'm behind in ST email!]
>
> Ter
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list