i have seen few codes where assert macro is used to make some checks on conditions. They used 'assert' so frequently (like in every destructor) that makes code looks too bad. My question is:
- why people rely on assert so much. is it because is it easy to use or improves coding style (if so pls explain this point) or helps in debugging.
- Can we use
exceptional handling or if-else condition check in stead of assert? How much it will be effective?
- If assert is important, what are approprite situation to use them?