[swift-evolution] Optional "endfor", "endif", etc after closing "}"
Andrew Brown
a.br at me.com
Sat Dec 12 06:54:05 CST 2015
+1
Anything that supports developers is worth it.
Can't say I like the syntax but I'll take whatever is agreed.
ABR.
> On 8 Dec 2015, at 14:43, Amir Michail via swift-evolution <swift-evolution at swift.org> wrote:
>
>
>> On Dec 8, 2015, at 8:42 AM, Amir Michail via swift-evolution <swift-evolution at swift.org> wrote:
>>
>> Unlike something like “} // if”, the compiler would actually check "} endif” and report an error if “}” doesn’t close the expected construct.
>
> Or perhaps more elegantly (again, it’s optional):
>
> if ... {
> …
> if }
>
> for ... {
> …
> for }
> etc.
>
>
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> 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
More information about the swift-evolution
mailing list