The future of Xtend ? [message #1818040] |
Wed, 04 December 2019 16:28 |
Elie Richa Messages: 72 Registered: February 2016 |
Member |
|
|
Hi all,
Apologies if I'm double posting - I tried a few searches and couldn't find what I was looking for.
I was surprised to discover in the Xtext/Xtend 2.20 release notes that Xtend development is being slowed down, and unless I'm mistaken, I caught the feeling that it might end up becoming unsupported in future releases. My project makes heavy use of Xtend, so that news raised a few questions that I hope the folks here might be able to answer.
1. Should we expect Xtend to be entirely phased out in the future? Or is it planned to keep being supported but without new features?
2. The release notes suggest that a lot of Xtend can be achieved with Java 10. [How] Can the following Xtend features be achieved with Java 10 as the release notes seem to suggest?
a. "extension" variables and fields
b. "import static extension"
c. handy operations on Iterable which are cumbersome on Streams
Xtend -> Java (approximately)
iterable.findFirst[lambda] -> iterable.stream().filter(lambda).findFirst().orElse(null)
iterable.join(string) -> iterable.stream().collect(Collectors.joining(string))
Please correct me if I'm not using streams in the best way :)
d. template strings with smart whitespace/indentation handling
Thanks!
Elie Richa, Ph.D
Software Engineer, AdaCore
https://www.adacore.com
|
|
|
Re: The future of Xtend ? [message #1818042 is a reply to message #1818040] |
Wed, 04 December 2019 16:37 |
|
(1) depends on what explodes in new Versions of Platform/JDT (Xbase/Xtend use a lot of internal API) and ASM. we also might not be able to support new Java Versions at some point.
the community and interesting parties have always the possibility to contribute and we invited to do so but the number of people doing this in the past was quite low.
but there are currently no concrete plans to totally ditch it.
(2) no there are a few things java cannot do right now
that are
- extensions
- rich string
- active annotations.
if you can live with the non extension / inverted syntax you can use xbases findFirst also from java.
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Wed, 04 December 2019 16:46] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03731 seconds