>
> On Tue, May 1, 2018 at 7:36 AM Alisdair <alisdair....@gmail.com 
> <javascript:>> wrote:
>
>> Isn't `for { ... if cond { break; } }` the same as `do {...} while cond`? 
>> Whilst having the benefits of not adding new keywords and maintaining the 
>> logic of the loop entirely within the block of the loop making it simpler 
>> to understand.
>>
>>
>>
Doesn't that check at initialization of the loop, while a "repeat until/do 
while" checks after at least one pass.. ? 

-- 
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.

Reply via email to