nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

Error Handling #527

Closed shadowezz closed 3 years ago

shadowezz commented 3 years ago

Does the use of assertions and exceptions constitute defensive programming?

nicktohzyu commented 3 years ago

I would think that they both fit the definition of trying to eliminate room for things to go wrong

damithc commented 3 years ago

I would think that they both fit the definition of trying to eliminate room for things to go wrong

Correct.

shadowezz commented 3 years ago

I see, that makes sense. Thanks Prof and Nick!