[e-lang] Complex, rational, and other sorts of numbers in E

Mark Miller markm at caplet.com
Wed Aug 11 16:09:47 EDT 2004


At 03:17 PM 8/10/2004  Tuesday, Ka-Ping Yee wrote:
>> [...] current status in Python is of
>> http://www.python.org/peps/pep-0238.html ? 
>
>That PEP is final -- it has been ratified and accepted, [...]

Ok, unless anyone has an interesting objection, the next release of E will 
use "//" in place of the current "_/". Since this is an easy enough search 
and replace, I'm inclined to simply reject the old syntax with an 
informative error, and not provide any switch for backwards compatibility.
Objections?

With this change, the following code sequence (demonstrating an ambiguity 
pointed out, I believe, by Constantine) should no longer be surprising:

    ? def x_ := 4
    # value: 4

    ? x_/1
    # value: 4.0


-- 
Text by me above is hereby placed in the public domain

        Cheers,
        --MarkM



More information about the e-lang mailing list