Extended method reference - A proposal

Mahdi Mohammadi mahdix at gmail.com
Tue May 17 19:31:43 UTC 2022


Thanks, Mariell.

"Having too many options for the same product is a thing, too": I agree
with this part but we already have method references which give you another
option to do the same thing you could have achieved via `x->y` notation.

On Tue, May 17, 2022 at 1:25 PM Mariell Hoversholm <
mariell.hoversholm at paf.com> wrote:

> To start the process, you could outline a proper proposal?
>
> I have to warn you, though, that this seems like a bit of an arbitrary
> change with no particular pros besides saving a few characters. It is also
> much less clear from first glance: the `x -> y` syntax is clear in its
> intent, and is distinct from a method reference and method call. The
> existing syntax is also well rooted in other languages having the exact
> same concept, including (but not limited to) C#, ECMAScript 6, Kotlin,
> Groovy, and TypeScript. Having too many options for the same product is a
> thing, too :-).
>
> Best of luck,
> Mariell
>


More information about the amber-dev mailing list