I started out writing a load of typechecks for my functions and such.
But I only recently learned about the assert statement.
If I read correctly, assert checks can be omitted in production code.
But pyrevit raises assertion errors anyway, so I suspect there’s no such thing as “dev” and “production” code in pyrevit. Right?
I was wondering if I should write assert statements regardless and just “go with it” with hopes of being able to disable them for users eventually?
Or perhaps remove assertions from my code (or replace them with typechecks) when I’m finished with a script?
Or should I not use assert at all?
Curious on your opinions.