[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Probe-file and errors
- To: dzg@CMU-CS-SPICE.ARPA, common-lisp@SU-AI.ARPA
- Subject: Probe-file and errors
- From: Kent M Pitman <KMP@SCRC-STONY-BROOK.ARPA>
- Date: Fri, 12 Apr 85 13:58 EST
- In-reply-to: <6595.160879383.>
Date: Thu 11 Apr 85 15:41:18-EST
What seems to be impossible, for some reason, is to make simple things simple.
... My code just wants to do
(cond ((probe-file "/usr/foo/bar")
... cannot find it. Bye. ...))
Simple as that. I do not (DO NOT!) want to handle an error...
In LispM lisp, you would write:
(cond ((ignore-errors (probe-file "/usr/foo/bar"))
It seems to me that this is not an unreasonable thing and has the
advantage of making it nicely explicit that you in fact don't care
what happens in the failing cases.
IGNORE-ERRORS is not in my error proposal but could be added.