You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A major source of off-by-one errors for me is that with 0-based indexing there is no simple way to know the last element in an array. len(foo)-1 is convoluted.
Feature request: last(foo) should be the same as (len(foo)-1) thus making the intent very clear.
The text was updated successfully, but these errors were encountered:
A major source of off-by-one errors for me is that with 0-based indexing there is no simple way to know the last element in an array.
len(foo)-1
is convoluted.Feature request:
last(foo)
should be the same as(len(foo)-1)
thus making the intent very clear.The text was updated successfully, but these errors were encountered: