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

Right-Exclusive ranges are superior to inclusive ranges because they can represent empty ranges, which removes one rare degenerate case and not overemphasizing it.

Another benefit: creating a series of right-exclusive ranges from a sequence [a, b, c, f] is easy: [a, b) [b, c) [c, f)



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

Search: