maris@lemmy.world to Programmer Humor@programming.dev · 1 month agoGambling with Lainlemmy.worldimagemessage-square28linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageGambling with Lainlemmy.worldmaris@lemmy.world to Programmer Humor@programming.dev · 1 month agomessage-square28linkfedilink
minus-squarer00ty@kbin.lifelinkfedilinkarrow-up0·1 month agoOh right. I thought it might work the same as range etc in python, where is does one less than you specify… Coming from, well every other language this really threw me off on my first python excursion.
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up0·1 month agoAny language… except MATLAB. Fuck MATLAB. (Their arrays even start at 1, what the fuck?!)
minus-squarewheezy@lemmy.mllinkfedilinkarrow-up0·edit-21 month agoLua starts at 1 too. It’s infuriating. I believe for the same historical reason Matlab does. Both meant for non CS people.
Oh right. I thought it might work the same as range etc in python, where is does one less than you specify… Coming from, well every other language this really threw me off on my first python excursion.
Any language… except MATLAB. Fuck MATLAB.
(Their arrays even start at 1, what the fuck?!)
Lua starts at 1 too. It’s infuriating. I believe for the same historical reason Matlab does.
Both meant for non CS people.