Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Personally, I find that just having "0..count" requires a bit of thinking on my part trying to decide if it's inclusive or not.

"0..<count" instantly tells me that it's not including value, and follows the matematical interval notification [0..count] vs [0..count)



I'd prefer 0..count or 0..(count - 1) then.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: