Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.979 Beiträge
 
#1

Think twice before raising exception in constructor

  Alt 21. Jan 2015, 10:20
Recently prolific Delphi writer Nick Hodges declared a war on the use of nil pointers. It is arguable whether nil pointers usage is bad or not, but the point is the “Guard Pattern” proposed is really an antipattern. Here is a simple demo: program Project11; {$APPTYPE CONSOLE} uses ...

More...
  Mit Zitat antworten Zitat