FR version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
80% Positive
Analyzed from 484 words in the discussion.
Trending Topics
#bar#int#left#struct#arguments#xor#python#foo#baz#kwargs

Discussion (18 Comments)Read Original on HackerNews
0. https://youtu.be/Grveezn0zhU
Comes out cleaner because overriding a default argument doesn’t force you to also do all the positional arguments in front of it.
Designated initializers make it look really nice imo. I feel like the brackets are no big deal.
Python has sort of the opposite when you need to use *kwargs.
…but I think the author meant “named arguments”, like we have in C#, Swift, and Objective-C.
They can be:
But you can also use them generically:https://docs.python.org/3/glossary.html?hl=en-GB#term-keywor...
EDIT: Thanks commenter hawkice for fixing my XOR arithmetic!