[swift-evolution] Proposal: Add .times method to Integer type

Stephen Celis stephen.celis at gmail.com
Mon Dec 21 10:00:36 CST 2015

Just another -1. While I appreciated it in Ruby, I don't think it belongs in the Swift standard library at this time. If closures could be annotated as break/continue-able, and if the standard library started grew a lot—as Ruby's did—then maybe (I'd prefer the former and hold off on the latter, though).

In the meantime, "repeat 5 { /* do something */ }" seems better to me.


> On Dec 20, 2015, at 9:32 PM, T.J. Usiyan via swift-evolution <swift-evolution at swift.org> wrote:
> -1 from me. It is simple enough for an extension and provides little benefit as a standard library inclusion.
> On Sun, Dec 20, 2015 at 9:10 PM, Howard Lovatt via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> +1 to 5.times{stuff} from me. I much prefer library functions to language extensions.
>   -- Howard.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>  _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151221/03045703/attachment.html>

More information about the swift-evolution mailing list