aboutsummaryrefslogtreecommitdiff
path: root/doc/plugin_tutorial
diff options
context:
space:
mode:
authorMichael Soegtrop2019-06-16 09:48:20 +0200
committerMichael Soegtrop2019-06-16 09:48:20 +0200
commit313518aab118dfdd6f559b5a0fc431e4e6740fdd (patch)
tree9d62292aa5198f6ecc9083acb6cc9fbac61ad543 /doc/plugin_tutorial
parentcd6db46a88eb192b7370308489cd4e2b719df342 (diff)
- added OCaml copyright header to List.v (if for no other reason than out of courtesy)
- index errors (negative or out of bounds) generally throw (panic) - hd, last, find backtrack, because here backtracking can actually be useful added a _throw variant to these functions which panics This emaphasizes the difference between backtracking and throwing exceptions, which doesn't exist in OCaml. - simplified the implementation of for_all2 and exist2 (ok, that is a matter of taste ...) - added assertions which combine a boolean match with a throw. This makes the code more readable and makes it easier to have more specific error messages. - added a lastn function - gave Out_of_bounds a message argument (there is no good reason why invalid_argument has one and this not) All other exceptions without message argument are quite specific to certain functions (like Not_Found)
Diffstat (limited to 'doc/plugin_tutorial')
0 files changed, 0 insertions, 0 deletions