Steven D'Aprano <steve@...> writes:
How do you feel about an arrow operator?
T -> TypeVar() x -> Symbol() T -> type(bases, ns) Record -> namedtuple(fields)
In general:
name [, name, ...] -> callable(...)
where "callable" is some expression, e.g. a name, a dot lookup, etc.
It could work with indexing, like:
key -> my_dict[]
instead of
key = my_dict[key]
Or even attribute lookup with a trailing dot:
attr -> my_object.
instead of
attr = my_object.attr
Joseph