<br><br><div><span class="gmail_quote">On 12/24/06, <b class="gmail_sendername">Carl Eastlund</b> &lt;<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 12/24/06, <a href="mailto:gregory.woodhouse@sbcglobal.net">gregory.woodhouse@sbcglobal.net</a><br>&lt;<a href="mailto:gregory.woodhouse@sbcglobal.net">gregory.woodhouse@sbcglobal.net</a>&gt; wrote:<br>&gt; In the cases like Danny&#39;s example, I&#39;ve usually returned a list, as in
<br>&gt;<br>&gt; (list (car x) (cdr x))<br><br>Sure, that works too, though it allocates a list that takes up space,<br>must be destructured, and is not actually relevant to the problem.</blockquote><div><br>I get it!&nbsp; Your saying that the compilers aren&#39;t designed to catch the fact that the list is created, and disasembled immediately by it&#39;s calling function, and not really needed, and therefore it creates a memory and speed overhead, that while usually small, could be important if it&#39;s inside a heavily used loop.
<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">or a list to return them in.&nbsp;&nbsp;Many programmers prefer not to construct<br>an arbitrary, irrelevant structure like a list for a non-list problem,
<br>so they use multiple values.</blockquote><div><br>And the rest prefer not to construct an arbitrary, irrelevant syntax so they use lists ;)<br>
<br>But I do see your point.&nbsp; I can now see why some people are using multi-value&#39;s.&nbsp; But I would argue that it should be a compiler thing, not a syntax thing.<br><br>Corey&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--<br>Carl Eastlund<br>_________________________________________________<br>&nbsp;&nbsp;For list-related administrative tasks:<br>&nbsp;&nbsp;<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme
</a><br></blockquote></div><br><br clear="all"><br>-- <br>((lambda (y) (y y)) (lambda (y) (y y)))