[Python-Dev] Parrot -- should life imitate satire?

Moshe Zadka m@moshez.org
Wed, 01 Aug 2001 11:37:47 +0300


[Moshe Zadka]
> PUSH "1"
> PUSH "2"
> BINARY_ADD
>
> In Python that gives "12". In Perl that gives 3.
> Unless you suggest a PERL_BINARY_ADD and a PYTHON_BINARY_ADD, I
> don't see how you can around these things.

[Tim]
> Perl needs distinct flavors of BINARY_ADD for its infix "+" and "."
> operators.  Once you accept that, there's no real problem here (it simply
> means that Python's and Perl's "+" operators would need to map to different
> opcodes).

And if you call Python's + opcode PYTHON_BINARY_ADD and Perl's
PERL_BINARY_ADD, it's exactly what I said, isn't it?
Are you agreeing or disagreeing with me? ;-)
And more importantly, what do you think it means for the feasibility
of such a project?
-- 
gpg --keyserver keyserver.pgp.com --recv-keys 46D01BD6 54C4E1FE
Secure (inaccessible): 4BD1 7705 EEC0 260A 7F21  4817 C7FC A636 46D0 1BD6
Insecure (accessible): C5A5 A8FA CA39 AB03 10B8  F116 1713 1BCF 54C4 E1FE
Learn Python! http://www.ibiblio.org/obp/thinkCSpy