Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  What Java, JavaScript and C# call "arrays"
  are each very much like what Python calls
  "lists'.
In Java and C#, 'arrays' are fixed size at creation time.

Both Java and C# provide 'lists' which are variable sized*

Python 'lists' are variable-sized.

Seems like a consistent naming scheme to me?

*there might be an underlying array that gets reallocated - but it's encapsulated within the list object; the reference to the list object is unchanged when this happens.



Fair point, technically.

But Python predates C# and Java.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: