Allow anything in identifiers?
Neil Cerutti
cerutti at together.net
Thu Mar 1 10:12:58 EST 2001
Sverker Nilsson posted:
>This would be a new kind of identifiers, I suppose one
>can make them by writing for example id <string> like in:
>
>id 'a>b' = a > b
>id 'x.b' = x.b
>alu.id'+' = lambda x, y...
>
>I think it could make programs easier to read by allowing
>more evident identifiers in many cases. The extended identifier
>syntax should not break anything, and it seems it might be easy to
>implement...
I have to admit I love being able to use function names like
number? and list->word in scheme. is_number and list_to_word are
just harder to type and to read.
--
Neil Cerutti <cerutti at together.net>
"The Analytical Engine weaves algebraic patterns just as the Jacquard
loom weaves flowers and leaves." -- Lady Lovelace
More information about the Python-list
mailing list