If you want X, you know where to find it (was Re: do...until wisdom needed...)

Courageous jkraska1 at san.rr.com
Thu Apr 19 13:02:48 EDT 2001


>> >   @let x = 3

>> Hrm. Don't think so. Any hypothetical Python-native macro utility
>> should be very tightly integrated such that it allows you to create
>> your own special-purpose dialect ...

>I'm not sure I see how having macro invocations stand out *slightly*
>violates any of this.

I guess you're right. However, Python's syntactic lightweightness
to me is important. It's part of what makes Python Python. I don't
want to see crazy symbols here and there, if you know what I mean.

>I've never quite liked the fact that in Lisp you may have trouble telling
>a procedure call from a macro invocation,...

But that's just it. Major sections of today's Lisp (the language) are
macro invocations, but you don't even know. I don't find this to be a
problem at all; a bigger problem is that Lisp is an unmanageable
kitchen sink: introducing new programmers to the language is a
nightmare, for exactly the reasons that reading Perl is a nightmare.

>Perhaps in Python you could get away without having any special macro
>invoking syntax, but since I know nothing about how the Python parser
>is implemented, I have no idea how easy or hard that might be.

I suspect it would be hard, but don't know.

C//




More information about the Python-list mailing list