ⓒⓢⓢ2020-02-08 10:45:34
Programming languages
ⓒⓢⓢ, 2020-02-08 10:45:34

Is there a PL with non-standard try..catch error handling logic?

For me, the standard logic is built like this (pseudocode):

try
  a=1/0; // вызывает ошибку и выполнение продолжается в блоке catch
  b++; // строка Не выполняется
catch
  // тут продолжается выполнение, если была ошибка
finally
  // выполняем всегда

Are there any languages ​​in which the logic of error handling is implemented "somehow differently"?
If you know such languages, please write their names.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Mirilaczvili, 2020-02-08
@JRK_DV

Oberon, Go

Y
Yo JLa, 2020-02-18
@blanger

See Rust Error Handling

M
Mikhail Potanin, 2020-03-06
@potan

Most functional languages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question