Steven D'Aprano <steve@...> writes:
How do you feel about an arrow operator?
T -> TypeVar() x -> Symbol() T -> type(bases, ns) Record -> namedtuple(fields)
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
key = my_dict[key]
Or even attribute lookup with a trailing dot:
attr -> my_object.
attr = my_object.attr