3 ms·
If it's gonna happen, and I'm not convinced it needs to, it needs to be a prefix. Otherwise, it's harder to distinguish positional and keyword arguments. But l
by jmholla 3y ago
If it's gonna happen, and I'm not convinced it needs to, it needs to be a prefix. Otherwise, it's harder to distinguish positional and keyword arguments.
But like the walrus operator (I was on the side of reuse of the keyword as), I worry I'll be on the losing side of this one too.
- JoBrad 3y agoI think borrowing object creation via spreading from JS would be a great option for this. The prefix would be the double , which would also differentiate it from a set. Something like def foo(long_argument1: str, long_argument2: str): pass long_argument1 = “some value” long_argument2 = “another value” foo(**{long_argument1, long_argument2})*