Since the major benefit of this feature is readability, it pays off the most when it's ubiquitous. So leaving it up to individual API devs to use records or not won't have the same systemic effects.
-
-
I know this because I once engaged in a Quixotic effort to statically analyze some Python code. It took me 130 LOC just to match arguments between call/definition in a function inliner.https://github.com/willcrichton/inliner/blob/29c53f6bf4c44e452c7bfd66e64743290cd74514/inliner/transforms.py#L32-L161 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
this confused me more than I expected it to until I realized you gave 3 as an argument twice in a row
yes, Python definitely admits some complex calling syntax, but overall I find this easier to wrap my head around than the Ruby stuff above! (could just be familiarity though.) -
also I don't tend to use (or see people use) all of these syntaxes at once! probably because it's a mess hahaha. you also left out /, which prevents naming the parameters that come before it, and * (by itself), which requires names after it! (I find them strange.)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD