untrusted icon indicating copy to clipboard operation
untrusted copied to clipboard

Use `debug_assert()` in every `Reader` function to check preconditions/invariants

Open briansmith opened this issue 7 years ago • 2 comments

In particular, at the start and at the end of each function, we should debug_assert() the i <= len invariant holds.

briansmith avatar Jun 21 '18 20:06 briansmith

#25

If this does not satisfy the issue, let me know. I want to get into open source.

Dolphindalt avatar Jul 06 '18 21:07 Dolphindalt

I think #28 would make this superfluous because it removes the i member.

briansmith avatar Mar 16 '19 21:03 briansmith