Python syntax in Lisp and Scheme

Raymond Wiker Raymond.Wiker at fast.no
Thu Oct 9 08:53:53 EDT 2003


Andreas Rossberg <rossberg at ps.uni-sb.de> writes:

> Dirk Thierbach wrote:
>>
>>>>you can use macros to do everything one could use HOFs for (if you
>>>>really want).
>> I should have added: As long as it should execute at compile time, of
>> course.
>>
>>>Really? What about arbitrary recursion?
>> I don't see the problem. Maybe you have an example? I am sure the
>> Lisp'ers here can come up with a macro solution for it.
>
> I'm not terribly familiar with the details of Lisp macros but since
> recursion can easily lead to non-termination you certainly need tight
> restrictions on recursion among macros in order to ensure termination
> of macro substitution, don't you? Or at least some ad-hoc depth
> limitation.

        Same as with function calls, you mean?

-- 
Raymond Wiker                        Mail:  Raymond.Wiker at fast.no
Senior Software Engineer             Web:   http://www.fast.no/
Fast Search & Transfer ASA           Phone: +47 23 01 11 60
P.O. Box 1677 Vika                   Fax:   +47 35 54 87 99
NO-0120 Oslo, NORWAY                 Mob:   +47 48 01 11 60

Try FAST Search: http://alltheweb.com/




More information about the Python-list mailing list