[records] Ancillary fields

Brian Goetz brian.goetz at oracle.com
Wed Apr 18 20:29:14 UTC 2018


Yes, you can say

     static final int x = f()
or
     static final lazy int x = f()

one is eager, the other lazy.

> Yes, but what about precomputed cached values, that are trully lazy? 
> Can we add ancillary final fields with initializers? Such final fields 
> have less initialization cost than lazy ones.
>



More information about the amber-spec-observers mailing list