----- Mail original -----
> De: "Brian Goetz" <brian.go...@oracle.com>
> À: "Remi Forax" <fo...@univ-mlv.fr>
> Cc: "John Rose" <john.r.r...@oracle.com>, "amber-spec-experts" 
> <amber-spec-experts@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.

Rémi

Reply via email to