Hacker News new | ask | show | jobs
by biomcgary 1171 days ago
"How to deal with off-by-one errors"
1 comments

reminds me of julia (the language): wanted to give it a try recently, until I read in their documentation: "In Julia, indexing of arrays, strings, etc. is 1-based not 0-based"… which made me wonder for a moment how many off-by-one errors may be caused by mismatches between different programming languages.