Hacker News new | ask | show | jobs
by dextersgenius 2753 days ago
http://4.bp.blogspot.com/-vglPHDBuUgI/VsniES7XnKI/AAAAAAAAD9...

The number line representation is incorrect. (5 < x && x < 10) represents x has possible values of 6,7,8,9 (assuming x is int), whereas the number line shows that 5 and 10 are inclusive, but that's not the case as per the provided example.

1 comments

Because all of the author's number line representations are consistent, I think you can consider them placing an implicit "open circle" on the bounds of all those ranges on the number line.