Name: Anonymous 2011-10-24 21:45
Let's have a thread for the C programming language. It's an excellent language.
(define (foo)
(let ((some-value 0)
(a (matrix))
(b (matrix))
(c (matrix)))
(call-with-current-continuation
(lambda (goto-exit-foo)
(unless (matrix-init! a 1000 1000) (goto-exit-foo))
(unless (matrix-init! b 1000 1000) (goto-exit-foo))
(unless (matrix-init-with-matrix! c a) (goto-exit-foo))
(unless (matrix-multiply-by-constant! c 2) (goto-exit-foo))
(unless (matrix-add! c b) (goto-exit-foo))
...
)
)
;exit-foo:
(matrix-free! a)
(matrix-free! b)
(matrix-free! c)
some-value
)
)