On using Arrays
Eric Lippert has a great article on arrays:
http://blogs.msdn.com/ericlippert/archive/2008/09/22/arrays-considered-somewhat-harmful.aspx
I think this is especially useful to consider if you’re writing an API. Consider not just arrays, but any time you’re returning any collection: Are you returning values or a variables? Did you mean to?
Avi
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comments
Leave a Comment
About Avi Pilosof
I'm a dev living in Sydney, working for Redmond - the best of both worlds :)
My team writes applications (mostly web) used internally within MS.