Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
maltalex
3mo ago
0 comments
Share
Immutable collections exit, they were just added later. See System.Collections.Immutable:
https://learn.microsoft.com/en-us/dotnet/api/system.collecti...
0 comments
default
newest
oldest
zmj
3mo ago
Those collections are more like copy-on-write than actual immutable. System.Collections.Frozen is the real thing.
rawling
3mo ago
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?
andix
3mo ago
I do a lot of .NET programming, and I've never seen them getting used. :O
ygra
3mo ago
Roslyn, the C#/VB compiler, uses them extensively, but in other code they're indeed quite rare.
j
/
k
navigate · click thread line to collapse