[E-Lang] Operators #8: Non Python expansions
Mark S. Miller
markm@caplet.com
Sat, 07 Apr 2001 12:54:17 -0700
--=====================_170364026==_.ALT
Content-Type: text/plain; charset="us-ascii"
These are the remaining expansions for which I couldn't find a Python
analogy. If I missed a section of the manual, please lemme know so I can
make more compatible choices.
!x -> x op__not()
x..y -> x op__thru(y)
x..!y -> x op__till(y)
<foo:body> -> foo__uriGetter op__getitem("body")
<foo: expr> -> foo__uriGetter op__getitem(expr)
When x and y are both positions in type-as-coordinate-space T, then
x..y means the same thing as T >= x & T <= y
x..!y means the same thing as T >= x & T < y
Among the core datatypes, "!x" is only expected to be defined on booleans.
To complement a region, use "~x".
Cheers,
--MarkM
--=====================_170364026==_.ALT
Content-Type: text/html; charset="us-ascii"
These are the remaining expansions for which I couldn't find a Python
analogy. If I missed a section of the manual, please lemme know so
I can
make more compatible choices.
!x -> x
op__not()
x..y
-> x op__thru(y)
x..!y ->
x op__till(y)
<foo:body> -> foo__uriGetter
op__getitem("body")
<foo: expr> -> foo__uriGetter
op__getitem(expr)
When x and y are both positions in type-as-coordinate-space T, then
x..y means the same thing as T
>= x & T <= y
x..!y means the same thing as T
>= x & T < y
Among the core datatypes, "!x" is only expected to be defined
on booleans.
To complement a region, use "~x".
Cheers,
--MarkM
--=====================_170364026==_.ALT--