juju/retry take 2 - looping

Katherine Cox-Buday katherine.cox-buday at canonical.com
Tue Oct 25 23:17:17 UTC 2016


Tim Penhey <tim.penhey at canonical.com> writes:

> Forcing continue/break does not make it like all boring imperative
> loops.

I would like to understand this better.

Here's why I think they're boring:
- They're Go keywords.
- They're present in many other languages and are well understood.
- I see breaks/continues all the time in loops.

In my opinion, it's much easier to understand and support a loop that makes use of these keywords than it is to invent a new way to break out of a loop.

Can you elaborate on why do you think these keywords are worse than checking for a special error instance?

-- 
Katherine



More information about the Juju-dev mailing list