Actually, you'll see a lot more of those in the new AX release.
There is nothing wrong with putting such statements into the code.
Their purpose is to assert a very specific condition, that MUST be satisfied.
If it is not, something is VERY wrong, and we should not continue.
They are intended for developers changing the code - when doing some testing of the changes, you would be able to easily see that something is wrong.
So, again - this is a good thing that they are there.
|