|Re: [Xtend] plans for list/array literals? [message #762044 is a reply to message #762027]
||Wed, 07 December 2011 13:21
| Sven Efftinge
Registered: July 2009
Am 12/7/11 1:59 PM, schrieb Vlad Dumitrescu:|
> We were about to start implementing our test suites in Groovy, but since
> we might move to Xtext, it's easier to use Xtend instead. One thing that
> I miss from Groovy is the literal lists/arrays. These make writing tests
> much easier.
> Are there any plans to add something similar? Or maybe there are already
> some nifty extension methods to do that?
Yes, they are not extension methods, but implicitly imported:
newHashMap(1 -> 'one', 2 -> 'two')
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Powered by FUDForum
. Page generated in 0.01625 seconds