Unusual control structures cause us all to slow down a little.
http://www.goplexian.com/2010/01/unusual-control-structures-cause-us-all.html
Maybe I'm tired, but I had one of those moments today where something seemed to make a lot of sense and you just had to tell someone about it. So here you go.
(
4 comments
| 15 points
| on HN
)
I suspect the referenced "slow down" was that the reader will naturally, upon encountering a loop, scroll to the end of the loop and figure out what the conditional is. Obviously the isn't really necessary in a do...while, since that code's going to run once no matter what, but I suspect most of us still do it anyway (like looking both ways before crossing a one way street).