[External] : Re: Rehabilitating switch -- a scorecard

forax at univ-mlv.fr forax at univ-mlv.fr
Tue May 18 18:12:27 UTC 2021

----- Mail original -----
> De: "Brian Goetz" <brian.goetz at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>
> Cc: "John Rose" <john.r.rose at oracle.com>, "amber-spec-experts" <amber-spec-experts at openjdk.java.net>
> Envoyé: Mardi 18 Mai 2021 19:07:41
> Objet: Re: [External] : Re: Rehabilitating switch -- a scorecard


>>   - tuple as first class citizen
> Sorry, no.  I know you really want this, but this is similar to the
> function-type-vs-functional-interface issue.  We made our choice when we
> did records -- records are our tuples.

I'm hunting around deconstructor and methods that returns several values.

I agree that records are our tuples but we had only anonymous classes and nevertheless we add lambdas, similarly we have records and we may still want to add anonymous primitive records (aka tuples).
Not as new structural types but as an anonymous value carriers.


More information about the amber-spec-experts mailing list