velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Williams <mi...@cortexebusiness.com.au>
Subject Re: #set silently fails if RHS is null
Date Sun, 11 Nov 2001 22:17:48 GMT
  >>> On Fri, 09 Nov 2001 13:39:47 -0500,
  >>> "Geir" == "Geir Magnusson Jr." <geirm@optonline.net> wrote:

  Geir> I have abhorred this aspect of things for a long time - I think of
  Geir> it as a bug in a sense because what happens is that he #set()
  Geir> 'fails' based on data, which is equally as bad as configurable
  Geir> language semantics...
  Geir> 
  Geir> Looking at 
  Geir> 
  Geir> #set($bar = "woogie")
  Geir> #set($bar = $this.couldReturnNull() )
  Geir> 
  Geir> Means I have *no clue* what $bar has. 

Agreed.  I wonder if anyone has templates that depend on this behaviour
... I would sincerely hope not.  Can anyone think of a example where
skipping the #set actually makes things clearer?

-- 
cheers, Mike

"Life is like an analogy."


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message