Yes, -1.
I feel like we should add a header to all messages on this list:
WARNING: PYTHON IS NOT PERL, NOR APL!
I know I'm being snarky, but too many of the recent ideas feel like code golf for uncommon user cases. Or at least not common enough to warrant the cognitive burden of more syntax.
On Oct 28, 2016 2:42 PM, "Paul Moore" p.f.moore@gmail.com wrote:
On 28 October 2016 at 22:25, Sven R. Kunze srkunze@mail.de wrote:
So, instead providing this kind of syntax for dicts only, why not also providing them for kwargs? Basically marking arguments as keyword
arguments:
my_func(:param1, :param2)
":param" equals "param=param" again but as already said that might just
be
placeholder syntax.
What do you think?
-1. I don't like the use of the colon here. I don't think there's any need to avoid the repetition in arg_name=arg_name, it's a common convention, easy to read and understand, and even to write with a bit of editor support. Explicit is better than implicit implies here, IMO.
Paul _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/