codechain icon indicating copy to clipboard operation
codechain copied to clipboard

Need an assertion policy

Open sgkim126 opened this issue 6 years ago • 0 comments

Currently, we use debug_assert in most cases because we check the assertions in tests and we don't want to check them again in the release binary.

But it's not sustainable. Bugs will occur for any reason. It seems better to use assert to crash early because we have a plan to add a bug tracker.

I think we need a guideline to decide when to use assert or debug_assert.

sgkim126 avatar Jun 12 '18 08:06 sgkim126