Added a future folder to examples
[fur] / examples / future / 33_except.fur
1 def throws() do
2   try
3     42 // 0
4   except(DivisionByZeroError)
5     print('This should print\n')
6     42
7   end
8 end
9
10 variable = throws()
11
12 print('This should also print\n')
13 print('This should be 42: ', variable, '\n')