JavaFX + xtend an ongoing love


So I’ve already blogged (here and here) about the prefect match between JavaFX and Xtend.

Now that those 2 got to know each other better their love grows even more because Xtend now has a with (=>) operator who frees you from writeing builder classes to create an object tree.

So one can now write my initial example like this:

Isn’t it wonderful if a couple is such a perfect match ;-)

The only small problem with the new with operator is that the editor is having difficulties providing sensible autocompletion but I’m sure it’s only a matter of time until the editor catches up (see bug 380537).

Give xtend a try – you’ll learn extremly fast how to use it if you know Java.

About these ads

2 Responses to “JavaFX + xtend an ongoing love”

  1. Cool! and thanks for the bug report, which Sebastian has already fixed yesterday :-)

Trackbacks/Pingbacks

  1. JavaFX links of the week, June 4 // JavaFX News, Demos and Insight // FX Experience - June 4, 2012

    [...] days. Firstly, he announced the release of e(fx)clipse 0.0.14. Then he did two blog posts, one on JavaFX and xtend, and then one on getting started with e(fx)clipse and [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 720 other followers

%d bloggers like this: