I used to work for a company where some of the lead architect/developers had mandated on various projects that assertions were not to be used, and they would routinely be removed from code and replaced with exceptions. I feel they are extremely important in writing correct code. Can anyone suggest how such a mandate could be justified? If so, what's wrong with assertions?
Edit: I realise they are for two completely different things, which is why a mandate that assertions can't be used, and should be replaced with exceptions seems so crazy.
Edit: relevant links to similar questions (thanks to Daniel Daranas) here and here.
Edit: Wow... those links are great, in fact I wouldn't have posted this question if I had seen them. Should I delete it?