clarity-lang / reference

The Clarity Reference
146 stars 34 forks source link

Rename `-panic` functions #25

Open njordhov opened 4 years ago

njordhov commented 4 years ago

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.