chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] Re: #416: Make stock errors more usable programmatica


From: Chicken Trac
Subject: [Chicken-janitors] Re: #416: Make stock errors more usable programmatically
Date: Wed, 01 Dec 2010 11:15:06 -0000

#416: Make stock errors more usable programmatically
-----------------------------+----------------------------------------------
  Reporter:  syn             |       Owner:       
      Type:  enhancement     |      Status:  new  
  Priority:  minor           |   Milestone:  4.7.0
 Component:  core libraries  |     Version:  4.6.x
Resolution:                  |    Keywords:       
-----------------------------+----------------------------------------------

Comment(by sjamaan):

 More to the point: I agree with Moritz that it would be a useful thing to
 have more informative error objects. Christian's suggestion of first
 checking if the file exists is a workaround and opens up a race condition.
 In C, you have errno which you can check for the various conditions.

 Maybe a simple way around this is adding the errno to the exception
 object, but that seems ugly and lazy :(

 Exhaustively checking all possible errno values for each call isn't very
 elegant either, especially since you'd need lots of #ifdefs for various
 platforms since everyone adds their own error conditions to errno...

 The compromise felix suggested sounds acceptable

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/416#comment:4>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]