<div dir="ltr">I'm also against any kind of markers to annotate the end of a block.<div><br><div>If the code inside a if/guard/loop/do/func/var/… block is so long that the developer thinks about annotating the closing curly brace then they should instead break it down into smaller pieces. Move parts into separate functions and replace it with calls to these functions.</div><div>This makes the block shorter, much easier to understand and the function names will aid as additional documentation.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 12, 2015 at 2:19 PM, Amir Michail via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Dec 12, 2015, at 7:54 AM, Andrew Brown <<a href="mailto:a.br@me.com">a.br@me.com</a>> wrote:<br>
><br>
> +1<br>
><br>
> Anything that supports developers is worth it.<br>
> Can't say I like the syntax but I'll take whatever is agreed.<br>
<br>
</span>What about this syntax?<br>
<br>
for … {<br>
if … {<br>
…<br>
} /if<br>
} /for<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
><br>
> ABR.<br>
><br>
>> On 8 Dec 2015, at 14:43, Amir Michail via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
>><br>
>><br>
>>> On Dec 8, 2015, at 8:42 AM, Amir Michail via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
>>><br>
>>> Unlike something like “} // if”, the compiler would actually check "} endif” and report an error if “}” doesn’t close the expected construct.<br>
>><br>
>> Or perhaps more elegantly (again, it’s optional):<br>
>><br>
>> if ... {<br>
>> …<br>
>> if }<br>
>><br>
>> for ... {<br>
>> …<br>
>> for }<br>
>> etc.<br>
>><br>
>><br>
>>> _______________________________________________<br>
>>> swift-evolution mailing list<br>
>>> <a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
>>> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
>><br>
>> _______________________________________________<br>
>> swift-evolution mailing list<br>
>> <a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
>> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div>