> Le 20 juin 2016 à 14:10, Robert Widmann via swift-evolution 
> <swift-evolution@swift.org> a écrit :
> 
> This change will modify and add the following productions in the Swift grammar
> 
> GRAMMAR OF A SUBSCRIPT DECLARATION
> 
> subscript-declaration → subscript-head subscript-result code-block
> subscript-declaration → subscript-head subscript-result getter-setter-block
> subscript-declaration → subscript-head subscript-result 
> getter-setter-keyword-block
> -subscript-head → attributes(opt) declaration-modifiers(opt) subscript 
> parameter-clause
> +subscript-head → attributes(opt) declaration-modifiers(opt) 
> generic-parameter-clause(opt) subscript parameter-clause
> +subscript-result → -> attributes(opt) throws(opt) type
> +subscript-result → -> attributes(opt) rethrows(opt) type
I am no expert in throws, but since there's no closure involved I think that 
'rethrows' doesn't apply here.

Dany
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to