There is no try.

do {

} or do not {

}

:nerd:

Rejecting just try?

https://esdiscuss.org/topic/just-try

In my head, I was imagining that do would be try, and or do not would be like catch… without the error variable binding.

Swift 2 basically has what that es-discuss thread was proposing. It has try, try!, and try?:

let photo = try! loadImage("senocular.jpg")

Am I reading it right that anything declared with a throws needs a try? Still reading…

Yeah, that’s how I read it too. Reminiscent of Java checked exceptions, except with better ways of succinctly handling errors you don’t care about.

Your choice of smile was appropriate :wink: