Re: [asdf-devel] Optional dependencies

2010-08-21 Thread Tobias C Rittweiler
In article , Juan Jose Garcia-Ripoll wrote: > On Fri, Aug 20, 2010 at 1:07 PM, Tobias C Rittweiler > wrote: > > > The parts you left out did not talk about reader conditionalization > > in ASD(F) files. So I'm confused by what you mean exactly. > > > > Sorry, I understood the reader macros

Re: [asdf-devel] Optional dependencies

2010-08-21 Thread Tobias C Rittweiler
In article , Faré wrote: > Dear Tobias, > > I personally think this "weakly-depends-on" is a horrible mess. > > If you want FOO, require FOO. If you want FOO+READTABLE, require > FOO+READTABLE. > > And so have two systems FOO and FOO+READTABLE. I think that's what the > dwim.hu guys now do.

Re: [asdf-devel] Optional dependencies

2010-08-20 Thread Vsevolod Dyomkin
Hi Tobias, One thing, that you might want to use instead of :weakly-depends-on is feature dependencies. The syntax is (:feature ) in dependency list, like this: (defsystem #:test :depends-on (#:cl-ppcre (:feature :custom-readtables)) Although, I didn't try it in modu

Re: [asdf-devel] Optional dependencies

2010-08-20 Thread Robert Goldman
Is this one of those cases where you have to do some kind of oddball dependency failure trapping? I have always disliked the fact that ASDF makes you implement conditionals as error-handlers. It seems like there should be a nicer syntax for conditionals in system definitions Sorry, I'm on va

Re: [asdf-devel] Optional dependencies

2010-08-20 Thread Juan Jose Garcia-Ripoll
On Fri, Aug 20, 2010 at 1:07 PM, Tobias C Rittweiler wrote: > The parts you left out did not talk about reader conditionalization > in ASD(F) files. So I'm confused by what you mean exactly. > Sorry, I understood the reader macros were intended to appear in the ASDF itself. I obviously misread yo

Re: [asdf-devel] Optional dependencies

2010-08-20 Thread Faré
Dear Tobias, I personally think this "weakly-depends-on" is a horrible mess. If you want FOO, require FOO. If you want FOO+READTABLE, require FOO+READTABLE. And so have two systems FOO and FOO+READTABLE. I think that's what the dwim.hu guys now do. It also works better with XCVB, this way. > I'

Re: [asdf-devel] Optional dependencies

2010-08-20 Thread Tobias C Rittweiler
In article , Juan Jose Garcia-Ripoll wrote: > On Thu, Aug 19, 2010 at 10:13 AM, Tobias C Rittweiler > wrote: > > > Now I'm wondering how good that solution is. > > > > Bad. I already spoke about why I am against reader conditionalization in > ASDF files. Dependencies should only be either

Re: [asdf-devel] Optional dependencies

2010-08-20 Thread Juan Jose Garcia-Ripoll
On Thu, Aug 19, 2010 at 10:13 AM, Tobias C Rittweiler wrote: > Now I'm wondering how good that solution is. > Bad. I already spoke about why I am against reader conditionalization in ASDF files. Dependencies should only be either features (strictly CL implementation dependent not the ones introdu

[asdf-devel] Optional dependencies

2010-08-19 Thread Tobias C Rittweiler
Quite a few libraries come with reader hacks. They usually come with a ENABLE-FOO-SYNTAX function. I'd like those libraries to optionally depend on the named-readtables library, and define a named readtable that includes their hacks. So users can just use (IN-READTABLE FOO:SYNTAX) on a per-file ba