[E-Lang] Name mangling
Marc Stiegler
marcs@skyhunter.com
Mon, 21 May 2001 12:27:41 -0700
Ravi,
Great to hear from you in this forum, with a live E app! :-)
Markm is out of town for a couple of weeks, so I will give you a brief reply
here of my understanding of why we are following the Python conventions.
Basically, some people on the list were having trouble with name conflicts
because the names were simple names one might use for other purposes. (was
it Tyler who had a problem? I am not skilled enough with pipermail to find
the thread). Markm adopted the Python conventions with the simple goal of
having a justification for his choice that would avoid endless rounds of
argumentation about why the name was X not Y: if someone asked why the name
was foo, it was because it followed the Python conventionas closely as
possible inside the framework of E.
I am sure that markm will be delighted and eager to make your usage of E as
smooth and effective as possible, but it will be a couple weeks before he
can engage this question.
--marcs
> I can see the reasons for copying the Python classifications and
formalisms
> for the operators, assuming they have been well thought out and have stood
> the test of time. However, I don't see a strong reason for adopting their
> double-underscore name mangling convention, especially since (a) it is not
> being adopted exactly, and (b) the probability of automated translation
from
> Python to E is essentially zero. The one reason could be that the more
> ordinary names are more likely to cause a conflict with existing code, but
I
> think any existing usage is likely to be very similar to the E usage if
the
> names are well chosen, and the code readability argument seems more
> compelling to me.