Python syntax in Lisp and Scheme

james anderson james.anderson at setf.de
Tue Oct 7 12:54:41 EDT 2003


Matthias Blume wrote:
> 
> raffael at mediaone.net (Raffael Cavallaro) writes:
> 
> ...
> > Two words: code duplication.
> ...
> 
> Three words and a hyphen: Higher-Order Functions.
> 
> Most of the things that macros can do can be done with HOFs with just
> as little source code duplication as with macros.  (And with macros
> only the source code does not get duplicated, the same not being true
> for compiled code.  With HOFs even executable code duplication is
> often avoided -- depending on compiler technology.)

is the no advantage to being able to do either - or both - as the occasion dictates?

i'd be interested to read examples of things which are better done with HOF
features which are not available in CL. sort of the flip-side to the example
of compile-time calculation and code generation. taking into account that
generic functions are, at least to some extent, the equivalent of value-domain macro-expansion.

?




More information about the Python-list mailing list