Andrei Alexandrescu wrote:
Yah, same here. I seem to finally have found one of the elusive cases
when goto simplifies things.
About Brad's variant - ranges don't define clear, but assigning b =
b.init does the trick. (I personally still find the goto version
marginally clearer. It's also marginally more efficient because it
doesn't do one assignment and one vacuous check. Also the joke with the
programmer who throws the water and then applies the known procedure to
make coffee comes to mind.)
Enlighten those of us unfamiliar with this joke?