Amber features 2026

Archie Cobbs archie.cobbs at gmail.com
Wed Jan 14 16:31:53 UTC 2026


Hi Brian,

On Tue, Jan 13, 2026 at 8:33 PM Brian Goetz <brian.goetz at oracle.com> wrote:

> While I totally understand why you would want to do that, I don't see the
> connection between pattern assignment and extending the type system to
> permit denotation of quantified or existential types?
>

Well it's kind of a loose "connection" I guess :)

I'm just pointing out that the two features have a common motivation: the
ability to declare a variable that is initialized from some existing
declared variable of an object. This is handy!

This idea of "local type vars" has come up before and been rejected. That's
fine, but if the underlying motivations are the same, then it seems like we
are being inconsistent by promoting one feature while ignoring the other.
They are both useful, and for the same reason (roughly speaking), so why
not complete the picture while we're mucking with the language syntax?

Admittedly, I'm asking not based on some conceptual language design
principle, but simply because this particular omission has always bugged me
and it seems relatively easy to fix without too much ugliness (maybe; to be
determined).

-Archie

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20260114/c37a24a5/attachment-0001.htm>


More information about the amber-dev mailing list