RFC -- HYGIENIC MACROS IN PYTHON

Courageous jkraska at san.rr.com
Wed Feb 6 11:22:09 EST 2002


>>That's non hygienic behavior.

>And what if I decide that for my particular application, that's just
>the behaviour I want? Or do you think that you know better than all
>the users of your macro system, even though you've not met them and don't
>know anything about the software they are writing?

Well, since one has to go through hoops to make a macro hygienic,
it's not hard at all to make them unhygienic. The plan is for hygiene
because this is generally regarded as a best practice by the community.
Which is to say, this as a default is regarded as what is most likely
to service _everyone_ best, allowing for exceptions of course.

You say "that you think you know better" as a scathing remark when what
you should know is that the idea of hygienic macros and their regard as
a best practice don't come from me at all. If what you want is a means to
make them unhygienic, just say so, don't scathe.

>It doesn't need handling; python does it OK already.

You can do it fairly trivially in Python, but there is no such
form in Python. The example was used to demonstrate the ability
to construct such a form, not acknowledge the goodness of its use.

C//




More information about the Python-list mailing list