A small but efficient, intuitive and responsive OCaml IDE right in your browser! Ships OCaml v5.1.1, interpreter by your browser (so it works offline!), compiled with js_of_ocaml.
In Ocaml top-level standard versions, runtime exceptions are treated as standard values.
However, we can treat those values as exceptions for the user in order to see them with error formatting.
In this case, I colorize the runtime exceptions as errors, but we can easily switch behavior.
In Ocaml top-level standard versions, runtime exceptions are treated as standard values. However, we can treat those values as exceptions for the user in order to see them with error formatting.
In this case, I colorize the runtime exceptions as errors, but we can easily switch behavior.
Example of code impacted :