[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RECEIVE vs LET-VALUES



Lars Thomas Hansen writes:

 > I'm puzzled.  By design, my macro for LET-VALUES does not require the
 > pattern ?VARIABLES to be a list; it can be a single identifier or an
 > improper list.  Thus:
 > 
 > 	(define (compose outer inner)
 > 	  (lambda arguments
 > 	    (let-values (intermediates (apply inner arguments))
 > 	      (apply outer intermediates))))
 > 
 > expands into your code above.  Is there a subtlety I'm missing?

        No, you're right.  I didn't read your syntax definition carefully
enough and slackly assumed that you were just modelling MzScheme's
LET-VALUES using RECEIVE.

-- 
======  John David Stone - Lecturer in Computer Science and Philosophy  =====
==============  Manager of the Mathematics Local-Area Network  ==============
==============  Grinnell College - Grinnell, Iowa 50112 - USA  ==============
========  stone@xxxxxxxxxxxxxxx - http://www.cs.grinnell.edu/~stone/  =======