Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Lua, a Misunderstood Language (2021). Parent comment
You want to measure the distance from a starting point (zero), the person you're replying to wants to count/label things from a starting point (one).
The distance method doesn't work as well for picking items from a bag, and the counting method doesn't work as well for calculating offsets.
They can both work for arrays, so neither is wrong.
There are no comments on this comment yet.
You want to measure the distance from a starting point (zero), the person you're replying to wants to count/label things from a starting point (one).
The distance method doesn't work as well for picking items from a bag, and the counting method doesn't work as well for calculating offsets.
They can both work for arrays, so neither is wrong.