"WATKINS, Andy, FM" wrote:
> 
> Interpolation is great but I would think twice before
> making anything _optional_.

I certainly understand where you are coming from.  There are several
Velocity features that are controllable from properties :

interpolation -> default is on
VMs -> many aspects, but default is ususally on
invalid reference warnings -> default is on

As a matter of fact, individual directives such as #macro() and
#foreach() are optional - you can actually make them stop working
through configuration. (For example, if you were insane...)

I guess the idea is that it is recognized that some these features, VMs
and interpolation for example, may be undesireable for some, and we
wanted to give them a way of just turning them off. 

> Ive spent a couple of years in the PHP world, and one
> annoying thing is that so much behaviour is optional.
> ( ASP style tags, backslashing quotes etc )
> 
> At first, this seemed like an advantage, but as PHP libraries
> and sample pages accumulated on the net, getting samples
> to work with the rest of a site became difficult, as diffent
> modules would require different options.
> 
> It would be a shame if "Velocity modules", ie collections
> of pages and their java backends, could not be run
> "out of the box". Having a global option (or even a page
> level option) prevents this happening.
> 
> In my option, it is better to decide that some thing is _good_
> and then always enable it. Compatabilities between
> pages of sample code, or "velocity modules" more than outweigh any
> small performance losses. It also makes testing a lot easier!

Agreed.  The 'optionality' of interpolation wasn't for performance.  I
mean, you could just not use them if you are worried about the
performance cost, right?  It was really to allow a user to enforce the
decision that the interpolation feature, because if its power, is not to
be used.
  
> Incidently, I look forward to an active community producing
> "banner rotators", "search engines", "permission editors"
> etc as velocity modules!
> 

Me too : I hope for a huge pile of Velocimacros.  'VMAN' or something :
Velocimacro Archive Network. :)

geir

-- 
Geir Magnusson Jr.                               [EMAIL PROTECTED]
Dakota tribal wisdom: "when you discover you are riding a dead horse,
the best strategy is to dismount."

Reply via email to