3 ms·
Why is (x=1, y=2) more practical than nt(x=1, y=2)? Also, we have a very efficient implementation for tuples. collections.namedtuple is quite fast and the artic
by joejev 9y ago
Why is (x=1, y=2) more practical than nt(x=1, y=2)? Also, we have a very efficient implementation for tuples. collections.namedtuple is quite fast and the article shows cnamedtuple (which I am the author of) which is a C implementation that is even faster. None of this needs a change to the language itself.
- rplnt 9y ago> Why is (x=1, y=2) more practical than nt(x=1, y=2)? It was outlined in the linked article. Order of named arguments should not matter so new syntax would be better.