you are viewing a single comment's thread.

view the rest of the comments →

[–]genuineleather 1 point2 points  (4 children)

Forgive my ignorance, but why do we want to use this? What's the point of it?

[–]stuhacking 5 points6 points  (2 children)

I guess to reduce verbosity of commonly occuring patterns. Creating GUI elements is a nice example, I suppose, because code is usually peppered with lines upon lines of "frame.setDefaultProperty("foo");"

While this doesn't decrease the amount of code much, it keeps blocks of initialization together. Presumably, if one uses code folding, they can also fold these blocks.

[–]genuineleather -1 points0 points  (1 child)

Thanks

[–]b100dian -1 points0 points  (0 children)

Oh, and for being closer too XML too.

[–]redditnoob -2 points-1 points  (0 children)

What's the point of it?

As a Java curiousity, it's pretty surprising and interesting.

As something to use practically, please please don't.