[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues (original) (raw)
David Abrahams dave@boost-consulting.com
07 Oct 2002 21:20:39 -0400
- Previous message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Next message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum <guido@python.org> writes:
> 2r/3 would be nicer IMO.
Or 2/3r. (The r binds only to the 3, but of course the binary operator rules kick in with the same effect.) Frankly, this is the only sane notation for rationals I've seen so far in this discussion.
I liked 2r/3 because it gives the sense that r/ is the rational division operator, where // is the whatever-the-hell-it-is division operator. I don't know if it works in the grammar to be able to say
x r/ y
though. Does it?
-- David Abrahams * Boost Consulting dave@boost-consulting.com * http://www.boost-consulting.com
- Previous message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Next message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]