Re:The future of C# and Visual Basic [video]
by sparkie on Monday November 03, 2014 @03:21PM
(#8553220)
Arrays implementing IList<T> is a clear example of a broken abstraction though - arrays have no need for Add, Remove and whatnot that come with IList - it only needs indexing and count.
[ Parent
| on HN ]
Re:The future of C# and Visual Basic [video]
by noblethrasher on Monday November 03, 2014 @04:04PM
(#8553483)
We normally think of Strings as being a special case of an array, but arguably String<T> should be a fundamental datatype, and we could do away with Array altogether. In that case, having operators for add and remove doesn't seem so crazy, especially in light of the fact that vectors often outperform doubly linked list for insertion and deletion on modern hardware[1].