[Python-3000] Type parameterization

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sun May 21 01:53:39 CEST 2006


Talin <talin at acm.org> writes:

> (Now all I need is a friendly way to spell "Var('x')" and I'm all set.)

var.x

> Another question that springs to mind is, what about the converse
> operator, '<-', and what does it represent? (Besides meaning "less
> than the negative of", which is a troubling ambiguity.)

Let's make use of the ambiguity - no need to change the current syntax:

func[int <- str, str]   # A function returning an int for two strings
dict[int <- str]        # A dictionary of ints mapped from strings

Joking.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Python-3000 mailing list