Therefore, I wanna ask, if the following features have been analyzed in context of Xtend already. Might be, that you have strong agrument against these ideas, might be, that this question has been asked before, might be, that you already thought about it... IMHO it would be great feature and I would love Xtend even more. So, thanks for your answer in advance.
I can put several classes, interfaces, annotations etc. in one file. However, it is not possible to allow the code generation within different packages. I can imagine different syntax, e.g.
package root
class MyClass {} // fully qualified "root.MyClass"
class MyClass2 {} // fully qualified "root.MyClass2"
package root.sub
class MyClass3 {} // fully qualified "root.sub.MyClass"
package root
class MyClass {} // fully qualified "root.MyClass"
class MyClass2 {} // fully qualified "root.MyClass2"
subpackage sub
class MyClass3 {} // fully qualified "root.sub.MyClass"
package root
class MyClass {} // fully qualified "root.MyClass"
class MyClass2 {} // fully qualified "root.MyClass2"
class sub.MyClass3 {} // fully qualified "root.sub.MyClass"
Simply think about the feature in C#. I know that many people hate this feature, but I really miss that feature in Java in context of code generation and separation of concerns. So, why not adding it in Xtend?
partial class MyClass {
def void func1TypeA() {}
def void func2TypeA() {}
def void func3TypeA() {}
}
partial class MyClass {
def void func1TypeB() {}
def void func2TypeB() {}
def void func3TypeB() {}
}
public class MyClass {
public void func1TypeA() {}
public void func2TypeA() {}
public void func3TypeA() {}
public void func1TypeB() {}
public void func2TypeB() {}
public void func3TypeB() {}
}
--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.