No problem with more than 500 @assert statements in v1.0.3?

This. Assertions are like improved comments, since comments inevitably get outdated.

Most production code I’ve seen have tons of assertions, so I don’t consider it a problem as long as it’s used for conditions that should never occur.

That said, in most environments I’ve worked with you can disable assertions in release mode.

1 Like