Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
also, length should make you think that array is one dimension only. While size, well this could be n-dimensional
-
I see you have not yet encountered Lua...
#array -- yes, this returns the length, however do NOT call it on non-sequences as the result is undefined in that case and can be any number or reference (u0b34a0f6ae for Lua 5.1, cubuspl42 for Lua 5.2 and so on...) -
muttley886y@deviloper Naming things, cache invalidation and off by 1 errors are the two most difficult problems :-)
-
The rust function naming conventions have changed my way of thinking about what a function does e.g to_string does a lot of work but as_string is light.
To me:
Length = 1-dimensional
Size = n-dimensiomal
Count = doesn't keep track of its size as it grows and has to compute its size -
@AlgoRythm hm... I used it when the ComputerCraft mod for Minecraft first came out... that was, 2010/2011 I think ¯\_(ツ)_/¯
My main problem while learning new programming languages
joke/meme
rant api kotlin consinstency