Yes I agree, why not use an idiomatic syntax when it exists?
I guess some persons prefer to have the same syntax everywhere or even don't know the idiomatic syntax (or maybe in some cases simply C/P snippets from Java)

Jacques

From: "Adam Heath" <[email protected]>
On 12/09/2010 01:58 PM, Adam Heath wrote:
I just noticed that several(many) ftl files use UtilMisc.toMap, but
others are using {}(freemarker syntax). I assume we would like the
latter to prevail. Agreements?

Same goes for UtilMisc.toMap and UtilMisc.toList inside groovy; groovy has native support for map/list creation, and imho should be preferred.



Reply via email to