<div dir="ltr">Sorry in advance for not exactly answering your question, but out of curiosity, what would 'conditionally included' entail exactly?<div><br></div><div>I ask because I've had trouble in the past where I erroneously used #+/#- in order to conditionalize a dependency - eg. define this function if some feature was loaded.</div><div>But I ran into two problems. Specifically, stale FASLs:</div><div>I had loaded my code after having loaded library X which I conditionally relied on (again via #+/#-).</div><div>But on another boot of my lisp image, I did not load library X and got subsequent errors loading the asdf system because the
FASLs were 'stale' in a way ASDF did not know about. </div><div><br></div><div>BTW See ASDF's `:if-feature` option.</div><div><br></div><div>Good luck</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 18, 2022 at 5:49 AM Didier Verna <<a href="mailto:didier@didierverna.net">didier@didierverna.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi there,<br>
<br>
until now, I had a tendency to split a library into several systems<br>
(more or less without thinking much) as soon as such or such feature was<br>
conditional (e.g. depending on CFFI availability, thread support, etc.).<br>
<br>
Now I realize that in many cases, a conditionally included module or<br>
component would suffice, and so I'm starting to think that maybe I<br>
should do that, unless it makes sense for the conditional part to be<br>
loaded sort of standalone, independently from the rest, in which case a<br>
subsystem is more appropriate.<br>
<br>
So my question is: WDYT, is there a general recommendation about this?<br>
<br>
Thanks.<br>
<br>
-- <br>
Resistance is futile. You will be jazzimilated.<br>
<br>
Lisp, Jazz, Aïkido: <a href="http://www.didierverna.info" rel="noreferrer" target="_blank">http://www.didierverna.info</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Wilfredo Velázquez-Rodríguez<br></div></div></div></div>