mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
642 B
642 B
There will be three classes of errors:
-
Static programming errors. The code doesn't pass the static checker and there is no way to handle it other than change the code.
-
Dynamic programming errors. Some pre-condition not enforced by the static checker is violated. Examples:
-
fn f a b {}; var args = [1]; f @$args
-
/ 1 0
-
-
Exceptional conditions that are anticipated but could not be reliably avoided. Examples:
-
echo >./out
but./out
is not writable -
ffmpeg -i a.mp4 a.ogg
buta.mp4
is not valid MP4. Non-zero return values of external commands always fall into this category.
-