Re: [ANN] Dire, Erlang-style error handling

2012-12-29 Thread Michael Drogalis
The CL article is really interesting, thanks. What do you think of the idea of using Slingshot's try+ within Dire? On Saturday, December 29, 2012 3:55:13 PM UTC-5, Ben wrote: > > On Sat, Dec 29, 2012 at 12:44 PM, Michael Drogalis > > > wrote: > > I've never seen that before, Ben. Can you link

Re: [ANN] Dire, Erlang-style error handling

2012-12-29 Thread Ben Wolfson
On Sat, Dec 29, 2012 at 12:44 PM, Michael Drogalis wrote: > I've never seen that before, Ben. Can you link me? Overview of CL conditions/restarts here: http://www.gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html The Clojure lib was clojure.contrib.error-kit (http://ric

Re: [ANN] Dire, Erlang-style error handling

2012-12-29 Thread Michael Drogalis
I've never seen that before, Ben. Can you link me? Just pushed version 0.1.1 with these suggestions: - Tasks are now simple functions, not macros - Using metadata to keep track of handlers rather than an atom. - Fixed namespace collision issue - Pass original arguments of task function to error h

Re: [ANN] Dire, Erlang-style error handling

2012-12-29 Thread Ben Wolfson
On Sat, Dec 29, 2012 at 10:13 AM, Michael Drogalis wrote: > On Saturday, December 29, 2012 9:57:56 AM UTC-5, Adam Clements wrote: >> One thing that worries me though. While this is fine for examples where >> you simply log the exception and move on, what if you need to do something >> more complic

Re: [ANN] Dire, Erlang-style error handling

2012-12-29 Thread Michael Drogalis
Thanks for the awesome feedback. On Saturday, December 29, 2012 9:57:56 AM UTC-5, Adam Clements wrote: > > Hey, > > I really like the idea of pulling out exception handling from the function > bodies. The try catch form has always bugged me a little bit. > > One thing that worries me though. Whil

Re: [ANN] Dire, Erlang-style error handling

2012-12-29 Thread Adam Clements
Hey, I really like the idea of pulling out exception handling from the function bodies. The try catch form has always bugged me a little bit. One thing that worries me though. While this is fine for examples where you simply log the exception and move on, what if you need to do something more

Re: [ANN] Dire, Erlang-style error handling

2012-12-28 Thread Michael Drogalis
Indeed, that is the paper - Joe Armstrong's 2003 dissertation "Making Reliable Distributed Systems in the Presence of Software Errors". The video for Rich's The Language of the System: http://skillsmatter.com/podcast/scala/the-language-of-the-system On Friday, December 28, 2012 8:40:28 PM UTC-5,

Re: [ANN] Dire, Erlang-style error handling

2012-12-28 Thread Dave Sann
I see joe's thesis is linked on your github page. is this thesis the paper you are referring to? Do you have a link to the video you refer to? thanks Dave On Saturday, 29 December 2012 06:14:34 UTC+11, Michael Drogalis wrote: > > Hey folks, > > After watching The Language of the System and bei

Re: [ANN] Dire, Erlang-style error handling

2012-12-28 Thread Michael Drogalis
I kind of forgot about user defined exceptions containing useful things. Good point. Deployed this adjustment to dire-0.1.0 with commit https://github.com/MichaelDrogalis/dire/commit/4a493e85ca88dd59806651264103de53a2879b66 On Friday, December 28, 2012 3:32:41 PM UTC-5, Craig Brozefsky wrote: >

Re: [ANN] Dire, Erlang-style error handling

2012-12-28 Thread Craig Brozefsky
Michael Drogalis writes: >Perhaps. Is there anything in the exception object that is useful? I >passed on it because the implementer of a handler already knows what >exception occurred. I'm happy to pass it as an argument if we have good >reasons for it. If my handler is going to

Re: [ANN] Dire, Erlang-style error handling

2012-12-28 Thread Michael Drogalis
Perhaps. Is there anything in the exception object that is useful? I passed on it because the implementer of a handler already knows what exception occurred. I'm happy to pass it as an argument if we have good reasons for it. On Friday, December 28, 2012 2:54:45 PM UTC-5, marc wrote: > > Would

Re: [ANN] Dire, Erlang-style error handling

2012-12-28 Thread Marc Boschma
Would it make sense for the handler to have access to the exception 'e' ? On 29/12/2012, at 6:14 AM, Michael Drogalis wrote: > Hey folks, > > After watching The Language of the System and being directed to Joe > Armstrong's paper on error handling, I concurred that his approach is > fantastic

[ANN] Dire, Erlang-style error handling

2012-12-28 Thread Michael Drogalis
Hey folks, After watching The Language of the System and being directed to Joe Armstrong's paper on error handling, I concurred that his approach is fantastic. I really wanted the same thing for more rudimentary operations, like file handling. So I wrote Dire https://github.com/MichaelDrogalis/