> On Oct 7, 2016, at 7:55 PM, Michael Jones <michael.jo...@gmail.com> wrote: > > It is a significant frustration for me, actually.
Yup. I feel like I waste time writing clear code for this case, because I spend time thinking how to avoid the bottom test. (And I forgot to invert the test for the if clause.) > What I do is to leave out the test completely at the top and put it at the > bottom , Just as you show. Comes up often in linked-list traversal and math > code. How about an optional fourth clause for do-until? :) for i := a.X;; i = i + b.X - a.X; i != b.x { //stuff } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.