[swift-evolution] Proposal: Replace labels with keywords and "*" suffixes

Kevin Wooten kdubb at me.com
Thu Dec 10 07:20:43 CST 2015


Curios as to what you see the advantage of this is, over labels? Seems to me it only saves a few keystrokes at the expense of clarity.

Given the stated goals of Swift I don’t imagine this would be an interesting proposal for many.

> On Dec 10, 2015, at 5:59 AM, Amir Michail via swift-evolution <swift-evolution at swift.org> wrote:
> 
> For example:
> 
> for* … {
>  for** ... {
>    for ... {
>>      if … { break for* }
>      ...
>      if … { continue for** }
>      ...
>    }
>  }
> }
> 
> repeat {
>  do {
>    for … {
>      if … { break do }
>      if … { continue repeat }
>    }
>>  }
> } while …
> 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list