Thema: Delphi try .. except .. finally

Einzelnen Beitrag anzeigen

Benutzerbild von Khabarakh
Khabarakh

Registriert seit: 18. Aug 2004
Ort: Brackenheim VS08 Pro
2.876 Beiträge
 
#32

Re: try .. except .. finally

  Alt 16. Jul 2009, 08:24
Zitat von alzaimar:
Hier ist uns Java überlegen, wo man in der Methodendeklaration gleich noch angibt, welche Exceptions auftreten können.
Segen... oder Fluch ?

The Trouble with Checked Exceptions. A Conversation with Anders Hejlsberg

Dort wird auch genannt, warum ich keine große Notwendigkeit für try-except-finally sehe:
Zitat:
It is funny how people think that the important thing about exceptions is handling them. That is not the important thing about exceptions. In a well-written application there's a ratio of ten to one, in my opinion, of try finally to try catch.
Gut, C# besitzt sowas , aber dort habe ich sowieso noch nie ein finally benötigt ² .
Sebastian
Moderator in der EE
  Mit Zitat antworten Zitat