Data classes
Brian Goetz
brian.goetz at oracle.com
Thu Nov 2 14:47:59 UTC 2017
Yes, that's certainly one of the ideas we're considering. However, in
the early stages, we like to focus on semantics, rather than syntax
(syntax discussions have a tendency to suck up all the oxygen in the
room, starving out more important discussions.) Similar for the use of
the ugly __data indicator; these obviously-silly tokens are a
placeholder for "there will be some syntax, to be determined later."
On 11/2/2017 10:29 AM, Zheka Kozlov wrote:
> Hi Brian.
>
> I'm happy to see this proposal. This is very similar to how I imagined
> data classes in Java. Just one thing that looks a bit ugly to me is
> the empty curly braces after the data class declaration. Can we omit
> them? Most of data classes will have no members, so the redundant
> curly braces will clutter the code.
>
>
> 2017-11-02 1:53 GMT+07:00 Brian Goetz <brian.goetz at oracle.com
> <mailto:brian.goetz at oracle.com>>:
>
> At the following URL, please find a writeup containing our current
> thoughts on Data Classes for Java:
>
> http://cr.openjdk.java.net/~briangoetz/amber/datum.html
> <http://cr.openjdk.java.net/%7Ebriangoetz/amber/datum.html>
>
> Comments welcome!
>
> We'll be making a prototype available soon for folks to play with.
>
>
More information about the amber-spec-observers
mailing list