You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the variety of backgrounds and experiences present across CFA and the fact that CFA members seem, at present time, to constitute most of MSRs early users, I suggest we explicitly write out the argument names for positional arguments.
Pro: The argument names provide useful information to new users of MSR, Python, and certain Python package (e.g., numpyro).
Con: Blurs the lines between required and optional arguments, as now all previously positional arguments are presented as keyword arguments.
Further thoughts are welcome. I do not feel particularly strongly about this, I just believe it might help clarify things to people in the tutorials somewhat.
The text was updated successfully, but these errors were encountered:
AFg6K7h4fhy2
changed the title
Consider Using Parameter Names In Calls In Tutorials
Consider Using More Argument Names In Calls In Tutorials
Jul 23, 2024
AFg6K7h4fhy2
changed the title
Consider Using More Argument Names In Calls In Tutorials
Consider Using More Argument Names In Tutorials
Jul 23, 2024
dylanhmorris
changed the title
Consider Using More Argument Names In Tutorials
Document convention of preferring named arguments even for mandatory (positional) args
Sep 13, 2024
Given the variety of backgrounds and experiences present across CFA and the fact that CFA members seem, at present time, to constitute most of MSRs early users, I suggest we explicitly write out the argument names for positional arguments.
Pro: The argument names provide useful information to new users of MSR, Python, and certain Python package (e.g.,
numpyro
).Con: Blurs the lines between required and optional arguments, as now all previously positional arguments are presented as keyword arguments.
Con: More writing for MSR developers.
Examples
...would change to
Further thoughts are welcome. I do not feel particularly strongly about this, I just believe it might help clarify things to people in the tutorials somewhat.
The text was updated successfully, but these errors were encountered: