|The future of Xtend ? [message #1818040]
||Wed, 04 December 2019 16:28
| Elie Richa
Registered: February 2016
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
Elie Richa, Ph.D
Software Engineer, AdaCore
Powered by FUDForum
. Page generated in 0.01864 seconds