M
Mark Mullin
I'd be curious about peoples observations on the (implicit) design
principle that causes dynamic collections to be sized via .Count and
fixed collections to be sized via .Length.
Yes, I know of history of .Count, but just because its been around
doesn't mean it should stay around.
Sometimes I find the distinction useful, otoh, its never the _only_
thing letting me know if my collection is fixed size or not.
In general, I'd lean to unifying them so there was a single abstract
method that sized any collection, but I might well be missing
something.
Anybody got any comments on the positives or negatives ?
mmm
principle that causes dynamic collections to be sized via .Count and
fixed collections to be sized via .Length.
Yes, I know of history of .Count, but just because its been around
doesn't mean it should stay around.
Sometimes I find the distinction useful, otoh, its never the _only_
thing letting me know if my collection is fixed size or not.
In general, I'd lean to unifying them so there was a single abstract
method that sized any collection, but I might well be missing
something.
Anybody got any comments on the positives or negatives ?
mmm