velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Williams <>
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." <> 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> Looking at 
  Geir> #set($bar = "woogie")
  Geir> #set($bar = $this.couldReturnNull() )
  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:   <>
For additional commands, e-mail: <>

View raw message