Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stonemetal12
48 days ago
|
parent
|
context
|
favorite
| on:
I'm not mutable, I'm partially instantiated
Both Java and C# do. In Java marking a variable final makes it immutable after assigned. In C# a variable marked readonly is the same.
contextfree
48 days ago
[–]
More precisely in C# a readonly field of a type can only be assigned to within that type's constructor.
skrebbel
48 days ago
|
parent
[–]
Which means you can't have a partially instantiated object except while the constructor is running.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: