[stringtemplate-interest] Empty vs null

Terence Parr parrt at cs.usfca.edu
Sat Jun 27 15:44:30 PDT 2009


Hi,

Bill Venners had a good suggestion: we need an "empty" value for an  
attribute. null means "not there" and Empty would mean "present but no  
value" sort of like 'new String("")'.

Now, adding a null value in a list gets ignored.

null:foo()		means do nothing
Empty:foo()	means same as foo()

Seem ok for next version?

Ter


More information about the stringtemplate-interest mailing list