Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
New features comming in Java 25
(
infoworld.com
)
2 points
by
ludovicianul
9 months ago
|
hide
|
past
|
favorite
|
1 comment
java-man
9 months ago
[–]
Stable values are good, though I would rather see a 'lazy' keyword.
Something like this:
private static final lazy Log log = Log.get();
which instantiates the `log` field atomically on the first use.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Something like this:
which instantiates the `log` field atomically on the first use.