🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.objects
Article #14405

Re: Wyrzucenie wyjątku, czy zwrócenie null?

#14405
From: Michal Przybylek
Date: Thu, 30 Mar 2006 19:03
17 lines
1996 bytes
"Grzesiek G." <gruza@spamerom_nie.priv4.onet.pl> wrote:

> Jeżeli więc dokumentacja mówi, że program ma sprawdzić czy
> plik istnieje, to można powinien być kod typu

Zupelnie bez sensu.

Jezeli po "elese" stoi to samo co w "catch" to zmarnowalismy kilka linii
kodu, bo program zachowuje sie identycznie.

Jezeli zas stoi cos innego, to program staje sie "nieciagly". Tzn. male
zaburzenia w czasie wykonywania akcji, powoduja, ze zachowanie programu jest
inne. Program dziala niedeterministycznie (nie jestesmy w stanie przewidziec
wyniku).


mp
Technical Details
Message-ID: <e0h98m$ck8$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <e09c3r$lg3$1@news.onet.pl> <e09f0h$cis$1@news.task.gda.pl> <e09gjn$737$1@news.onet.pl> <e0b1re$bdc$1@news.onet.pl> <e0c8eh$ur8$1@news.onet.pl> <e0cd04$ljh$1@news.task.gda.pl> <e0ced6$f7g$1@news.onet.pl> <e0dabl$1sv$1@news.task.gda.pl> <87y7ytka81.fsf@qrnik.zagroda> <e0e8n1$ppe$1@news.task.gda.pl> <e0ef6i$h84$1@nemesis.news.tpi.pl> <e0ei45$p93$1@news.task.gda.pl> <e0ejpu$27n$1@news.onet.pl> <e0elnc$qp1$1@news.task.gda.pl> <e0elup$ad0$1@news.onet.pl> <e0gr7t$4h1$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Michal Przybylek" <mrp@neostrada.pl>
Newsgroups: pl.comp.objects
Subject: Re: Wyrzucenie wyjątku, czy
 zwrócenie null?
Date: Thu, 30 Mar 2006 21:03:28 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 18
Message-ID: <e0h98m$ck8$1@atlantis.news.tpi.pl>
References: <e09c3r$lg3$1@news.onet.pl> <e09f0h$cis$1@news.task.gda.pl> <e09gjn$737$1@news.onet.pl> <e0b1re$bdc$1@news.onet.pl> <e0c8eh$ur8$1@news.onet.pl> <e0cd04$ljh$1@news.task.gda.pl> <e0ced6$f7g$1@news.onet.pl> <e0dabl$1sv$1@news.task.gda.pl> <87y7ytka81.fsf@qrnik.zagroda> <e0e8n1$ppe$1@news.task.gda.pl> <e0ef6i$h84$1@nemesis.news.tpi.pl> <e0ei45$p93$1@news.task.gda.pl> <e0ejpu$27n$1@news.onet.pl> <e0elnc$qp1$1@news.task.gda.pl> <e0elup$ad0$1@news.onet.pl> <e0gr7t$4h1$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: dky6.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1143744599 12936 83.24.28.6 (30 Mar 2006 18:49:59 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 30 Mar 2006 18:49:59 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit