Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
riku_iki
on Oct 7, 2023
|
parent
|
context
|
favorite
| on:
Java 21 VirtualThreads vs. Clojure Lazy Seqs
I don't have strong knowledge in types theory, but why
class C { a: int = 0; }
can't be replaced with
class C { a = 0; }
? what issues it brings?..
kaba0
on Oct 7, 2023
[–]
That can. But what about a field that is not initialized there?
riku_iki
on Oct 7, 2023
|
parent
[–]
obviously you would need to provide type.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
class C { a: int = 0; }
can't be replaced with
class C { a = 0; }
? what issues it brings?..