Re: asdf restart named in the keyword package
Gary King <[email protected]> Wed, 18 Jun 2008 23:46:45 -0400
| Newsgroups | gmane.lisp.cclan.general |
|---|---|
| Message-ID | <[email protected]> |
I have no strong feeling about this one way or the other. I don't mind some keyword pollution but also enjoy the conceptual purity of the restart being in the ASDF package. Is there any stylistic or historical preference for one route over the other? On Jun 16, 2008, at 7:40 PM, Matthew D.Swank wrote: > Christophe Rhodes <csr21 <at> cantab.net> writes: > >> >> Gary King <gwking <at> metabang.com> writes: >> >>> I'm happy to apply this patch unless the internet says "no". >> >> Here's one reason why not, though you'll have to use your judgment or >> get further discussion. >> > ... > >> If try-recompiling is ASDF:TRY-RECOMPILING, that would have to be >> written >> (handler-bind ((error (lambda (c) (invoke-restart (find-symbol > "TRY-RECOMPILING" "ASDF") c)))) >> (require :foo)) >> if the user is not certain that asdf is already loaded. >> > > > Well, the use cases I am thinking about are at the repl where it's > easy enough > to ensure asdf is loaded. I usually use asdf:oos anyway as I switch > lisps a > lot. However, if one is doing something fancier I don't think it's > much of a > hardship to have the more verbose form. I wouldn't use handler-bind > in the repl > directly anyway: it's too verbose. > > I had the following, very specific macro in mind when I started down > this path: > > (defmacro punt (system) > `(handler-bind ((sb-fasl::invalid-fasl-version > (lambda (e) > (let ((restart (find-restart :try-recompiling))) > (if restart (invoke-restart restart) (signal > e)))))) > (asdf:oos 'asdf:load-op ,system))) > > > > > Matt > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > cclan-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cclan-list -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php