The term panic may make sense in systems languages like Rust but is technical lingo with etymology from the kernel panic in operating systems. It is currently used in the naming of these Clarity functions:
For a high level language like Clarity, it is better to use a more commonly understood term such as abort in reference to functions that throws a runtime error, aborting any further processing of the current transaction. It will make Clarity code more generally understandable, including when discussing contracts with non-developers like domain experts.
The term panic may make sense in systems languages like Rust but is technical lingo with etymology from the kernel panic in operating systems. It is currently used in the naming of these Clarity functions:
For a high level language like Clarity, it is better to use a more commonly understood term such as
abort
in reference to functions that throws a runtime error, aborting any further processing of the current transaction. It will make Clarity code more generally understandable, including when discussing contracts with non-developers like domain experts.