<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br>On May 26, 2011, at 18:32 , Pascal Costanza wrote:<br><br><blockquote type="cite"><br>On 25 May 2011, at 21:40, Marco Antoniotti wrote:<br><br><blockquote type="cite">Hi<br><br>I don't think there is a reasonable objection to forbid a form like<br><br><span class="Apple-tab-span" style="white-space:pre">  </span>((returns-something-funcallable arg1 arg2 ... argN) 1 2 3 ... N)<br><br>from "working as expected".  As Martin pointed out, if the return value of the form is a "macro" then this would have to be interpreted in the "regular" evaluation regime.<br></blockquote><br>The main issue I have with this is that at the moment, you have only explicit shifting operators (funcall/apply and function/symbol-function/fdefinition). A proposal like the one above would introduce implicit shifting.<br><br>You already have implicit shifting in the sense that placing a symbol in the car or any of the cdr positions is already enough to fetch something from the function or the value namespace. However, you can only do this with explicit function/variable names directly in the "user" code, or by constructing the correct s-expressions in macro definitions. With a proposal like the above, you would add another level of implicit shifting.<br><br>If I define a function, say (defun foo () 'bar), and a corresponding macro (defmacro foom () (foo)), then without explicit shifting and without macros, I can only use this to generate a variable name (baz (foom)), but not to generate a function name, because ((foom) baz) fails. With the proposal above, ((foom) baz) wouldn't fail. I prefer the explicitness of (funcall (foom) baz), especially because if you really, really, really want it implicit, you can still have it your way anyway.<br></blockquote><div><br></div><div>I think this are good reasons, but not enough to disallow the following:</div><div><br></div><div><font class="Apple-style-span" face="'Courier New'">    (<symbol or form-returning-a-function-not-a-symbol or lambda-expression> ...)</font></div><div><br></div><div>We already have </div><div><br></div><div> <font class="Apple-style-span" face="'Courier New'">    ((lambda (x) (+ x 42)) 0)</font></div><div><br></div><div>Why not have</div><div><br></div><div> <font class="Apple-style-span" face="'Courier New'">    ((compose 'first 'rest) '(1 2 3))</font></div><div><br></div><div>This would complicate the call protocol and require more explanation, but I really don't see how it would harm the programmer.</div><div><br></div><div>Cheers</div><div>--</div><div>MA</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><br><br>Pascal<br><br>--<br>Pascal Costanza<br>The views expressed in this email are my own, and not those of my employer.<br><br><br><br></blockquote><br><div>--<br>Marco Antoniotti, Associate Professor<span class="Apple-tab-span" style="white-space:pre">                         </span>tel.<span class="Apple-tab-span" style="white-space:pre">        </span>+39 - 02 64 48 79 01<br>DISCo, Università Milano Bicocca U14 2043<span class="Apple-tab-span" style="white-space:pre">             </span><a href="http://bimib.disco.unimib.it">http://bimib.disco.unimib.it</a><br>Viale Sarca 336<br>I-20126 Milan (MI) ITALY<br><br>Please note that I am not checking my Spam-box anymore.<br>Please do not forward this email without asking me first.<br><br><br><br><br></div><br></body></html>