You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1 I could see benefit to this. They way I see assert-plus is as a library that adds certainty to variable types that compiled languages get for free... for example:
voidfunc(inta, char*b) {
}
When func is called, you know 100% you have an int and char pointer. whereas with javascript, we can emulate it with:
I still maintain, however, that NDEBUG is key here, and a proper development cycle should render it that, in production, these assertions are unnecessary.
Regardless, I'm +1 on assert.integer and assert.positiveInteger
"number" isn't specific enough sometimes.
The text was updated successfully, but these errors were encountered: