|
Re: [Xtend] plans for list/array literals? [message #762044 is a reply to message #762027] |
Wed, 07 December 2011 13:21 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Am 12/7/11 1:59 PM, schrieb Vlad Dumitrescu:
> Hi,
>
> 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:
newArrayList('foo','bar','baz')
newHashSet('a','b','c')
newHashMap(1 -> 'one', 2 -> 'two')
Sven
--
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.03127 seconds