Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
maltalex
8 days ago
|
parent
|
context
|
favorite
| on:
Comptime – C# meta-programming with compile-time c...
Immutable collections exit, they were just added later. See System.Collections.Immutable:
https://learn.microsoft.com/en-us/dotnet/api/system.collecti...
zmj
8 days ago
|
next
[–]
Those collections are more like copy-on-write than actual immutable. System.Collections.Frozen is the real thing.
reply
rawling
7 days ago
|
parent
|
next
[–]
Isn't Frozen something you do to a set or dictionary to say, I'm not going to add any more values, please give me a version of this which is optimized for lookup only?
reply
andix
8 days ago
|
prev
[–]
I do a lot of .NET programming, and I've never seen them getting used. :O
reply
ygra
8 days ago
|
parent
[–]
Roslyn, the C#/VB compiler, uses them extensively, but in other code they're indeed quite rare.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://learn.microsoft.com/en-us/dotnet/api/system.collecti...