Yeah, same philosophy more or less. Or "defensive programming", or "offensive programming" which is like defensive programming but "assert everything everywhere"
Might be useful in the boost graph library stuff I'm doing; tysm for showing me