[swift-evolution] Brace syntax

Charles Constant charles at charlesism.com
Sun Dec 20 06:25:22 CST 2015


Yes, that is the point. If you use braces in Swift, you will naturally
gravitate to all sorts of personalized strategies. Now this is possible
with significant whitespace (e.g.: Python uses the semicolon to put
multiple statements on the same line) but not nearly as common.


On Sun, Dec 20, 2015 at 4:22 AM, Tino Heth <2th at gmx.de> wrote:

>
> var foo: Int
> {
>     get
>     {
>         return _foo
>     }
>     set
>     {
>         _foo = newValue
>     }
> }
>
> I assume you know that braces don't require an extra line for themselves?
> ;-)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151220/33ca093f/attachment.html>


More information about the swift-evolution mailing list