Gollum@feddit.org to Programmer Humor@programming.dev · 7 months agoAnother smart movefeddit.orgimagemessage-square64linkfedilinkarrow-up122arrow-down13
arrow-up119arrow-down1imageAnother smart movefeddit.orgGollum@feddit.org to Programmer Humor@programming.dev · 7 months agomessage-square64linkfedilink
minus-squareOvershoot2648@lemm.eelinkfedilinkarrow-up0·7 months agoIt really doesn’t make sense to start at 1 as the value is really the distance from the start and would screw up other parts of indexing and counters.
minus-squareIndustryStandard@lemmy.worldlinkfedilinkarrow-up1·7 months agoIt would screw up existing code but doing [array.length() -1] is pretty stupid.
It really doesn’t make sense to start at 1 as the value is really the distance from the start and would screw up other parts of indexing and counters.
It would screw up existing code but doing [array.length() -1] is pretty stupid.