[records] updates for Preview 9. hashCode
brian.goetz at oracle.com
Tue Jan 14 23:05:59 UTC 2020
> This is almost OT but it's a question I was asked for twice,
> what is the rational to use the angle bracket instead of the parenthesis ?
I surveyed a variety of implementations of toString(), and picked what
seemed most common, which was some variant of:
Which was good enough. Yes, we could bikeshed it, but I'm not
particularly seeing a problem that needs to be fixed, and it doens't
seem obvious to me that highlighting the record-ness of it is important
at toString-time? It's the state that matters.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the amber-spec-experts