2 ms·
Yes, sort of like final... but different. I was thinking this is more for _public_ variables... so like internally, a class could modify it's own readable fiel
by exabrial 12y ago
Yes, sort of like final... but different.
I was thinking this is more for _public_ variables... so like internally, a class could modify it's own readable fields, but code external could read only.
- breischl 12y agoI do like how C# handled this, FWIW. public int MyProperty{ get; //public private set; //private-only setter } but obviously there are a lot of ways to skin that cat.