On May 31 2016, Steven D'Aprano steve-iDnA/YwAAsAk+I/owrrOrA@public.gmane.org wrote:
How do you feel about an arrow operator?
T -> TypeVar() x -> Symbol() T -> type(bases, ns) Record -> namedtuple(fields)
Solves the problem nicely, but difficult to memorize. I'd always expect the RHS to be evaluated first, and *then* somehow be connected to the LHS.
How about a special placeholder?
Record -> namedtuple($me, fields) Record := namedtuple($me, fields)
or maybe even
Record = namedtuple($me, fields)
(yeah, I guess I'd like to see $ get semantics in Python)