tag:blogger.com,1999:blog-6255758224607466565.post9053142158196457033..comments2024-02-11T10:25:39.241+01:00Comments on Sebastian Zarnekow's Blog: Xtend2 - What's In The Pipeline?Anonymoushttp://www.blogger.com/profile/05886096380926364322noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6255758224607466565.post-8615408078994799362011-03-02T09:15:43.165+01:002011-03-02T09:15:43.165+01:00Krzysztof,
>> Do you plan to use it as www ...Krzysztof,<br /><br />>> Do you plan to use it as www view technology too? <br /><br />I'm not sure what you mean by www technology in the context of Xtend but no, there are no plans in that direction from our side.<br /><br />>> it looks that migration from old xtend would lead to more code<br /><br />What do you have in mind? The surrounding class?<br /><br />>> Java Generics<br /><br />Yes, that's an advantage since developers are familiar with the semantics.<br /><br />>> non default polymorphic dispatch<br /><br />We consider polymorphic dispatching the exception and not the common case.<br /><br />>> Classes<br /><br />This is actually an advantage since you do not end up with synthetic class names and you can use Xtend code transparently from Java code.<br /><br />>> Create extensions <br />We will have something like this. Not yet but soon. So far you can build something similar with higher order functions.<br /><br />>> Xpand like templates<br />No.<br /><br />>> Automatic transformation<br />There are no concrete plans.<br /><br />>> DI instead of AOP<br />Yes, that's the point. <br /><br />>> Around method in Xtend2 <br /><br />You extend the generator class and override the method that you like and do you stuff before and after calling super.<br /><br />>> Add new language features to Xtend <br /><br />Xtend is not designed to be extended on a language level. But you are always free to use the standard Xtext extension mechanisms. However, 'cached' is a good candidate for a library with higher order functions.Anonymoushttps://www.blogger.com/profile/05886096380926364322noreply@blogger.comtag:blogger.com,1999:blog-6255758224607466565.post-53433106204560900902011-02-28T23:11:06.824+01:002011-02-28T23:11:06.824+01:00So as I mention in a tweet, I consider some things...So as I mention in a tweet, I consider some things ambivalent (and need to see how they work out):<br />- it's a (another) General Purpose Language. It may be hard to sell GPL as there are plenty of them. It is great at creating string/file output, but it seems more complex than other dsl-s that can do that (usually one consider gpl-s more complex ;)). Do you plan to use it as www view technology too? <br />- it looks that migration from old xtend would lead to more code<br />- Java Generics<br />- non default polimorphic dispatch. Feels like C# non virtual methods ;) I would like a compilation unit flag (or less likely workflow param): "dispatch all". It would potentially ease migration and spare some chars.<br />- classes, probably are good to modularize code, but I would like them to be optional (e.g. like in Groovy). Maybe they are optional already? It would potentially ease migration a bit.<br /><br />Things I don't know yet:<br />- implicit create - in xtend I could create any type of object based on any params e.g. String(role of object) that was not set to any field in the object but send as additional parameter. I am not sure is it still possible e.g.:<br />create new Class("Role1") { name = foo.bar }<br />- id there also xpand-like form of template definition?<br />- will you provide automatic transformation from xtend to xtend2?<br />- is DI meant to totally replace old AOP?<br />- how one configure DI (e.g. how to write old around method in xtend2)?<br />- how hard would it be for 3rd party to add new elements to xtend2 (e.g. a www template language with new "cached" keyword that would cache function output like create but use persistent ehcache for that)<br /><br />I like:<br />- whitespace handling! (maybe not the most important feature(as long as you don't code in python), but great idea)<br />- true closures<br />- Generics<br /><br />Regards, <br />Krzysztof KowalczykKrzysiekhttps://www.blogger.com/profile/03930625629870670860noreply@blogger.com