Hacker News new | ask | show | jobs
by or10nx 1190 days ago
> People fret about the difference between T[] and List<T> in C#

That doesn't align with my experience. I've worker for small (4 programmers) and large (100s of programmers) C# shops, and I don't recall people "fretting" about T[] and List<T>. People see T[] as a non-growable, less useful version of List<T>. HashSet<T> vs List<T> seems to cause much more trouble for novice (and sometimes experienced) C# programmers.

1 comments

I'm thinking more about the places where people care about performance, since accessing a T[] is faster than accessing a List<T> (less indirection).