Added a future folder to examples
[fur] / examples / future / 34_except_finally.fur
1 def throws() do
2   try
3     42 // 0
4   except(DivisionByZeroError)
5     print('This should print first\n')
6     42
7   finally
8     print('This should print second\n')
9     1
10   end
11 end
12
13 variable = throws()
14 print('This should print third\n')
15 print('This shoudld be 42: ', variable, '\n')