13 May
2020
13 May
'20
3:55 p.m.
On 5/13/20 2:03 PM, Rhodri James wrote:
On 13/05/2020 17:20, chris.the.developer.0@gmail.com wrote:
I'm working with developers that have decided to use asserts every time they want to throw an exception. I feel that their should be something that dissuades this behavior in the language design.
I'm sorry, but I think the correct response is to give them a spanking in code review. I certainly wouldn't pass any code that actually relied on assert doing anything.
My thought was he just needs to add that case to the unit tests. -- Richard Damon