well, that’s why I advocate for a special keyword. in your example, the left side is of type Log, and the right side is of type Supplier<Log>. on the other hand, the lazy keyword allows us to capture the intent: it’s a final field, just initialized lazily. it is a lambda underneath, but we don’t really care or want to type. having talked to the jdk people, the chances of seeing my proposal are exactly zero.
View all comments
Show parent comment
1
u/0xffff0001 Sep 23 '25
what if the method requires parameters?