Skip to content

IT: replace assert statements with custom checkers #938

@678098

Description

@678098

A few reasons:

  1. Default assert statements might be disabled, they are intended to be switched on/off.
  2. The main reason why assert statements are used is that it is an already existing language feature.
  3. assert statements don't allow to set up a breakpoint to intercept any failure with a debugger. If we have a custom checker, we can have one simple place for breakpoints that allows to intercept anything.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions