Spec draft for JEP 286 Local Variable Type Inference
Ali Ebrahimi
ali.ebrahimi1781 at gmail.com
Thu Mar 30 05:13:17 UTC 2017
Hi Dan,
I don't ask to add inference support for *array initializer *expressions: *var
f = { 1 };*
But I think there is an inconsistency in *14.14.2* wrt. array initializer
expressions:
The current spec supports this:
for(var i : *{1, 2.0}*) ...
Is this intended?
On Thu, Mar 30, 2017 at 3:42 AM, Dan Smith <daniel.smith at oracle.com> wrote:
> Hello, all. Please see below for a draft spec of language changes to
> support local variable type inference ('var').
>
> If you haven't read it already, you'll want to look at the proposal [1]
> and Brian's summary of design considerations and community feedback (sent
> to platform-jep-discuss) [2].
>
> With that context, here's the spec document:
> http://cr.openjdk.java.net/~dlsmith/local-var-inference.html
>
> I'll follow up with some supplementary background on design
> considerations, beyond what's covered by the platform-jep-discuss email.
>
> Feel free to respond with your feedback.
>
> Thanks,
> Dan
>
> [1]: http://openjdk.java.net/jeps/286
> [2]: http://mail.openjdk.java.net/pipermail/platform-jep-
> discuss/2016-December/000066.html
--
Best Regards,
Ali Ebrahimi
More information about the amber-spec-observers
mailing list