<div dir="ltr">Fair enough, I mostly agree with your reasoning, thanks for taking the time to elaborate.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 18, 2013 at 9:58 AM, Pascal Costanza <span dir="ltr"><<a href="mailto:pc@p-cos.net" target="_blank">pc@p-cos.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Last time I checked, asdf was not a debugging or utilities library.</div><div><br></div><div>Fare's reasoning is also flawed. The problem stated in the claim "because when you need it, you need it now" is not solved with his suggestion, because it assumes that you have the right version of asdf loaded. Otherwise it is actually not available "now".</div>
<div><br></div><div>How people debug code is a highly personal and subjective choice. No matter how much Fare tries to make a variant that "gets everything right", he will fail, because what is right for him may not be right for others.</div>
<div><br></div><div>His hidden agenda seems to be to piggy back on the widespread use of asdf and force his views on how things "should" be done on the Lisp community.</div><div><br></div><div>I have already considered removing asdf completely from my workflow in the past. If asdf starts to mess with such fundamental rules for allowing indepently developed code to coexist, then it will be the final blow for me.</div>
<div class="im"><div><br></div><div>Pascal<br><br>Sent from my iPad</div></div><div><div class="h5"><div><br>On 18 Nov 2013, at 09:44, Alessio Stalla <<a href="mailto:alessiostalla@gmail.com" target="_blank">alessiostalla@gmail.com</a>> wrote:<br>
<br></div><blockquote type="cite"><div><div dir="ltr"><div>Well, Faré is obviously well aware of that, and has given an explanation for why he is willing to "break the rules" this particular time. So "don't dare touch the keywords package!" does not seem the right answer to me...<br>
</div>Faré, I understand your points, what fails me is: if this is a debug macro nobody won't ever use in production code, why make it available in a library at all? Why couldn't it simply live in your rc file? Or, you could include it in uiop with a non-keyword name, and only bind it to :dbg in your own environment. I fail to understand why you'd want to it be available everywhere, everytime... and for everyone as well!<br>
<br>Alessio<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 18, 2013 at 9:28 AM, Pascal Costanza <span dir="ltr"><<a href="mailto:pc@p-cos.net" target="_blank">pc@p-cos.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hm, just when I thought this the mailing list for professional Common Lisp users.</div><div><br></div>
<div>Off the top of my hat: <a href="http://www.lispworks.com/documentation/HyperSpec/Body/11_abcb.htm" target="_blank">http://www.lispworks.com/documentation/HyperSpec/Body/11_abcb.htm</a></div><div><div><br>
</div>
<div>Pascal</div><div><br>Sent from my iPad</div></div><div><div><div><br>On 18 Nov 2013, at 08:51, Hans Hübner <<a href="mailto:hans.huebner@gmail.com" target="_blank">hans.huebner@gmail.com</a>> wrote:<br>
<br></div><blockquote type="cite"><div><div dir="ltr">Pascal,<div><br></div><div>if you mean what you write, can you give some reasoning?</div><div><br></div><div>-Hans</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/11/18 Pascal Costanza <span dir="ltr"><<a href="mailto:pc@p-cos.net" target="_blank">pc@p-cos.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DON'T TOUCH THE KEYWORDS PACKAGE! Are you crazy?!?<br>
<br>
This will be setting a very bad precedence. Just don't. Really!<br>
<br>
Pascal<br>
<br>
Sent from my iPad<br>
<div><div><br>
> On 18 Nov 2013, at 06:17, Faré <<a href="mailto:fahree@gmail.com" target="_blank">fahree@gmail.com</a>> wrote:<br>
><br>
> In ASDF 3.1.0.14, I introduced a macro :DBG (in uiop/utility.lisp).<br>
> Yes, it's in the keyword package. Why?<br>
> Because it's the one and only macro I want to be accessible from everywhere<br>
> without a prefix, yet without modifying existing defpackage forms to make<br>
> it accessible — because it's only used temporarily for debugging.<br>
><br>
> :DBG is a macro for print-debugging. The syntax is<br>
> (:DBG tag forms... last-form)<br>
> The semantics is that if tag is true, print the tag, then for each<br>
> form, write its source and its values; return the values of the last<br>
> form. If tag is false, just evaluate the last form and return its<br>
> values. (Tag is typically a constant keyword or string, identifying<br>
> the point where values are printed.)<br>
> The expansion is rather space and time efficient, as far as the<br>
> semantics permit.<br>
><br>
> I find :DBG soooo useful for print-debugging. I've seen tens of<br>
> variants of it, but every time with something not quite right in the<br>
> syntax, semantics or implementation. I just wanted one variant that<br>
> got everything right, and make it ubiquitous. Because when you need<br>
> it, you need it now, and there's no time to modify things to load an<br>
> additional library. And when you're done, you want minimal cleanup,<br>
> too: just delete the form, except maybe keep the last subform.<br>
><br>
> Previously, I was using (uiop:uiop-debug) from uiop/utility which<br>
> allows you to load a magic file of your choice that defines a debug<br>
> mode. The default one I provided was mine, which define :DBG as DBG in<br>
> your current package (thereby avoiding symbol import issues). But that<br>
> still adds a new definition everytime and an extra line or form to<br>
> cleanup.<br>
><br>
> I was recently convinced that using the keyword package instead makes<br>
> perfect sense: on the one hand, that's using a shared namespace that<br>
> it is polite to not pollute, but on the other hand, such a temporary<br>
> print-debugging macro the only use case I imagine of otherwise wanting<br>
> something to be immediately accessible without package prefixing yet<br>
> without modifying the package definition form.<br>
><br>
> It's still time to remove that macro before the next release, but I<br>
> believe it's the right thing to include it, and maybe some of you will<br>
> agree with me and start using it, if not from the yet unrelease ASDF<br>
> 3.1.1, perhaps from a copy in your .sbclrc.<br>
><br>
> —♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• <a href="http://fare.tunes.org" target="_blank">http://fare.tunes.org</a><br>
> The common argument that crime is caused by poverty<br>
> is a kind of slander on the poor.<br>
> — H. L. Mencken<br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></blockquote></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div></div></div></blockquote></div></div></div>