Explanation of macros; Haskell macros

Alain Picard apicard+die-spammer-die at optushome.com.au
Thu Oct 30 03:28:14 EST 2003


Joachim Durchholz <joachim.durchholz at web.de> writes:

> Alain Picard wrote:
>
>> More precisely: "macros make control of when, if, and how often,
>>                  something is evaluated _possible_."  Functions
>> (your only other option) give you no choice.
>
> This statement is wrong if left in full generality: higher-order
> functions can control quite precisely what gets evaluated when. If the
> language offers both lazy and strict parameters, evaluation time
> control extends to the parameter expressions as well.

My apologies to the functional guys.  I was responding from a lisp
newsgroup: so let me amend the above to end with "IN LISP".
[We do not have lazy evaluation by default.]






More information about the Python-list mailing list