exception n / 0 rescue SomeExceptionClass => some_variable # code that deals with some exception else # code that runs only if *no* exception was raised ensure # ensure that this code always runs, no matter what # does not change the final value of the block end end
# code that deals with some exception else # code that runs only if *no* exception was raised ensure # ensure that this code always runs, no matter what # does not change the final value of the block end
changes to the type system. • Some on-paper proposals and some early implementations, but nothing is currently close to getting included as a standard part of the language.