Sven Efftinge | 21 Mar 14:25 2012
Picon

Xtend 2.3 beta

Hi all,

Xtend 2.3 beta is now available.
See my blog post for more information: 

  http://blog.efftinge.de/2012/03/xtend-23-beta-version-available.html

Cheers,
Sven

Bill Burdick | 21 Mar 15:47 2012
Picon

Re: Xtend 2.3 beta

Do I need to use Juno to build it?  I've had trouble using Indigo to build it in the past, because of some dependency problems.  I think I need to be able to build it to add in the closure extensions I'm using -- unless you guys have folded those in :).



Bill


On Wed, Mar 21, 2012 at 8:25 AM, Sven Efftinge <sven.efftinge-vKTaeuyewxCzQB+pC5nmwQ@public.gmane.org> wrote:
Hi all,

Xtend 2.3 beta is now available.
See my blog post for more information:

 http://blog.efftinge.de/2012/03/xtend-23-beta-version-available.html

Cheers,
Sven

Harshad RJ | 21 Mar 16:24 2012
Picon

Re: Xtend 2.3 beta

Great going, developers!

Not to steal the limelight from your efforts, but I would like to suggest that (if possible), giving higher priority to language changes might be better than tooling changes at this stage.

In any case, good show!

On Wed, Mar 21, 2012 at 6:55 PM, Sven Efftinge <sven.efftinge-vKTaeuyewxCzQB+pC5nmwQ@public.gmane.org> wrote:
Xtend 2.3 beta is now available.
See my blog post for more information:

 http://blog.efftinge.de/2012/03/xtend-23-beta-version-available.html


--
Harshad RJ
http://lavadip.com
Sven Efftinge | 21 Mar 20:41 2012
Picon

Re: Xtend 2.3 beta

Thanks, for the kind words.
Which language improvements would you like to see?

On Mar 21, 2012, at 11:24 AM, Harshad RJ wrote:

Great going, developers!

Not to steal the limelight from your efforts, but I would like to suggest that (if possible), giving higher priority to language changes might be better than tooling changes at this stage.

In any case, good show!

On Wed, Mar 21, 2012 at 6:55 PM, Sven Efftinge <sven.efftinge-vKTaeuyewxCzQB+pC5nmwQ@public.gmane.org> wrote:
Xtend 2.3 beta is now available.
See my blog post for more information:

 http://blog.efftinge.de/2012/03/xtend-23-beta-version-available.html


--
Harshad RJ
http://lavadip.com

Harshad RJ | 21 Mar 20:51 2012
Picon

Re: Xtend 2.3 beta


On Thu, Mar 22, 2012 at 1:11 AM, Sven Efftinge <sven.efftinge-vKTaeuyewxCzQB+pC5nmwQ@public.gmane.org> wrote:
Which language improvements would you like to see?

From the top of my mind:
  • Support for decimal literals
  • Type inference for fields
  • Traditional for loops
  • Something similar to case class from Scala
  • Tuples
I think I have created tickets for most of these requests.

Thanks,
--
Harshad RJ
http://lavadip.com
Sven Efftinge | 21 Mar 21:06 2012
Picon

Re: Xtend 2.3 beta


On Mar 21, 2012, at 3:51 PM, Harshad RJ wrote:

On Thu, Mar 22, 2012 at 1:11 AM, Sven Efftinge <sven.efftinge-vKTaeuyewxCzQB+pC5nmwQ@public.gmane.org> wrote:
Which language improvements would you like to see?

From the top of my mind:
  • Support for decimal literals
That's included in the beta. 
  • Type inference for fields
Yep, that's something we want to do very soon.
  • Traditional for loops
What's the motivation?
I always use the range operator when i need an index.

for (x : 0..list.size) {
   val ele = list.get(x)
}
  • Something similar to case class from Scala
We are going to experiment with a more general support for annotation processing, with which such things can easily be done (and even customized to your needs).
  • Tuples
You mean tuple types, as a short cut for 
Pair<String, Boolean> and Triple<Foo,Bar,Baz> ?

Not sure if that's worth it. Any examples where the currently available support isn't sufficient?

Thanks,
Sven
Harshad RJ | 22 Mar 13:07 2012
Picon

Re: Xtend 2.3 beta



On Thu, Mar 22, 2012 at 1:36 AM, Sven Efftinge <sven.efftinge-vKTaeuyewxCzQB+pC5nmwQ@public.gmane.org> wrote:

On Mar 21, 2012, at 3:51 PM, Harshad RJ wrote:
  • Support for decimal literals
That's included in the beta. 

Great!
 
  • Traditional for loops
What's the motivation?
I always use the range operator when i need an index.

for (x : 0..list.size) {
   val ele = list.get(x)
}

Well, I might want to traverse the array with a different stride than 1, or jump over values sometimes, or have two index variables incrementing at different paces. The traditional for loop is very flexible. It is true that the same can be achieved with a while() loop, but the traditional for loop has an easily recognised syntax.
 
  • Something similar to case class from Scala
We are going to experiment with a more general support for annotation processing, with which such things can easily be done (and even customized to your needs).

Sounds interesting.
 
  • Tuples
You mean tuple types, as a short cut for 
Pair<String, Boolean> and Triple<Foo,Bar,Baz> ?

Not sure if that's worth it. Any examples where the currently available support isn't sufficient?

I wasn't aware of Triple, so that's good. Nevertheless, Tuples with arbitrary length will be better. (I understand true arbitrary length Tuples will be difficult, but some sane limit like 22 in Scala is sufficient for practical purposes).

I guess the main thrust of my request is to have a generic syntax for Tuples, so that when I change a binary Tuple (Pair) to say a Ternary Tuple (Triple), I don't have to change the types everywhere. (Type inference does help in some cases, but not always.)

I am coming from a Scala background, but for performance reasons I am stuck with Java for my projects. If Xtend can give me features like Scala (wherever possible) with the raw performance of Java, I would be a happy convert.

cheers,
--
Harshad RJ
http://lavadip.com
consiliens | 21 Mar 18:36 2012
Picon

Re: Xtend 2.3 beta

"'it' and 'this' are not allowed as member names" is this new in the beta?

On Wed, Mar 21, 2012 at 7:25 AM, Sven Efftinge
<sven.efftinge@...> wrote:
> Hi all,
>
> Xtend 2.3 beta is now available.
> See my blog post for more information:
>
>  http://blog.efftinge.de/2012/03/xtend-23-beta-version-available.html
>
> Cheers,
> Sven


Gmane