Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
1.3-rc1
-
None
-
None
-
Operating System: other
Platform: All
-
17086
Description
I am currently attempting to use Velocity to generate various codes. At first
look, Velocity looks like the ultimate template engine. However, when you put
Velocity to the test, you realize that there are key features missing. I list
some of those features below. The missing features are related to the Velocity
language. The language is missing many features usually found in modern script
languages like JScript, Perl, Python..etc. I would suggest to use a language
like Rhino (JScript engine written in Java) as a language engine for Velocity.
This would overcome all the problems with the current version of Velocity.
Here is a list of problems with Velocity language.
1 - There is no variable scoping. This is a problem because it prevents proper
encapsulation. One cannot write fully modular macros or functions. Global
variables are overwriting each other.
2 - Velocity does not support Object Orientation. All modern scripting
languages support OO.
Regards,
Colbert Philippe