Language feature to support Fluent Syntax for Static Method Calls
Ron Pressler
ron.pressler at oracle.com
Wed Mar 29 12:32:45 UTC 2023
> On 29 Mar 2023, at 12:43, Kristofer Karlsson <krka at spotify.com> wrote:
>
> I have concluded that my original idea will not end up being
> implemented, but I hope
> that there is something simple that can be done to reduce the problem.
>
> Best regards
> Kristofer
But something has been done! Virtual threads address those problems with CompletableFuture — resulting in even prettier code than you wish for — as well other, more serious ones.
Other issues raised in the discussion, with Stream and AutoCloseable, are being worked on separately. In both of these situations, the core problem is not one of syntax at all but that the design of these constructs is intrinsically not sufficiently composable. Addressing *that* will help not only aesthetics but also bigger problems caused by that limitation.
— Ron
More information about the amber-dev
mailing list