2 ms·
>You often say to yourself "Well I know this assert will never trigger but I'll put it here just in case". Then you check your analytics next day after release
by vram22 8y ago
>You often say to yourself "Well I know this assert will never trigger but I'll put it here just in case". Then you check your analytics next day after release and get humbled.
That is exactly what asserts are for: checking for things that "cannot happen" - but do sometimes happen.