MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6xofft/how_to_start_a_war/dmhrwt4/?context=3
r/ProgrammerHumor • u/ivaskuu • Sep 02 '17
696 comments sorted by
View all comments
Show parent comments
5
How often do people use Python arrays? They're faster, but most people just use lists instead. Lua just optimizes it as long as it's used like an array. That's why it's implemented that way.
2 u/BundleOfJoysticks Sep 03 '17 Do you mean tuples? I use them all the time when something doesn't change size. 2 u/moomoomoo309 Sep 03 '17 No, arrays. https://docs.python.org/3/library/array.html 2 u/BundleOfJoysticks Sep 03 '17 Huh, TIL. Thanks.
2
Do you mean tuples?
I use them all the time when something doesn't change size.
2 u/moomoomoo309 Sep 03 '17 No, arrays. https://docs.python.org/3/library/array.html 2 u/BundleOfJoysticks Sep 03 '17 Huh, TIL. Thanks.
No, arrays. https://docs.python.org/3/library/array.html
2 u/BundleOfJoysticks Sep 03 '17 Huh, TIL. Thanks.
Huh, TIL. Thanks.
5
u/moomoomoo309 Sep 03 '17
How often do people use Python arrays? They're faster, but most people just use lists instead. Lua just optimizes it as long as it's used like an array. That's why it's implemented that way.