27 ms·
Thanks! Yes, it is for runtime checking only
by stefanka 4y ago
Thanks! Yes, it is for runtime checking only
- dachryn 4y agowhat is the performance overhead? especially on recursive calls
- stefanka 4y agoLet's say I did not put a focus on speed–and there will be a performance overhead ontop of the actual checks. In a production system, you should probably consider to deactivate it in performance-critical parts (evaluate=False)
- IshKebab 4y agoThen what's the advantage compared to normal assertions, which I think would be a lot more readable. I think normally this sort of thing is useful so you can statically check stuff. If it's runtime only that seems a bit useless.