[swift-evolution] Optional "endfor", "endif",	etc after closing "}"
    Amir Michail 
    a.michail at me.com
       
    Tue Dec  8 08:43:07 CST 2015
    
    
  
> 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
    
    
More information about the swift-evolution
mailing list