[swift-evolution] use standard syntax instead of "do" and "repeat"

Brent Royal-Gordon brent at architechies.com
Mon Dec 28 00:25:02 CST 2015


> So “try” instead of “do”. If there is no catch, then just use braces without a keyword for a block. 
> 
> And use do-while instead of repeat-while.

Do you also propose no longer marking calls to throwing functions with `try`?

Have you read the "Error-Handling Rationale" document in the Swift repository? If not, please do: <https://github.com/apple/swift/blob/master/docs/ErrorHandlingRationale.rst> If so, please explain why you disagree with it.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list