[
https://issues.apache.org/jira/browse/VELOCITY-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660256#action_12660256
]
Nathan Bubna commented on VELOCITY-406:
---------------------------------------
Yeah, arrays, maps, lists and objects with get(key) methods. See the
IndexTestCase for demo. It looks pretty thorough.
> Improved Syntax for Maps and Collections
> ----------------------------------------
>
> Key: VELOCITY-406
> URL: https://issues.apache.org/jira/browse/VELOCITY-406
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Reporter: Jörg Gottschling
> Priority: Minor
>
> I would like to see some syntatic sugar for Maps and Collections and perhaps
> other Objects too.
> (I have read that there will be a syntax for map literals in 1.5, that's a
> first step.)
> I want to have something like in groovy:
> http://groovy.codehaus.org/Collections
> Scroll down to "Slicing with the subscript operator".
> PS: Please do never implement this terrible confusing groovy map bean syntax,
> where "map.foo" ist equivalent to "map.get("foo")".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]