-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bikeshed better positional argument names post 1.0 #25198
Comments
Maybe it's time to follow JuliaPraxis guidelines? And expand those guidelines as needed. |
@ararslan The JuliaPraxis guidelines are just a suggestion. But I wonder what do you disagree with. JuliaPraxis guidelines? Enforcing any guidelines? Renaming these variables? I'm all in for consistency and good naming practices, I'm OK with whatever the guidelines end up being as long as we do have guidelines and we enforce it's use, specially in base Julia (specially since we still have many undocumented code), even if this cryptic variables are properly documented. |
JuliaPraxis guidelines are not official. Any discussion regarding those guidelines should happen on that repo. |
That is true, but I think the very purpose of JuliaPraxis is to become something we all agree becomes part of an official guideline at some point. What are the official guidelines that we can discuss here then? There is the "official" style guide, but it doesn't mention many things that JuliaPraxis does. And some minor stylistic conventions here (which should probably be in the style guide instead of scattered): At least I think the intention of @JeffreySarnoff and the people participating in JuliaPraxis discussions was never to start a separate Style guide just for the sake of having something different than what is told in the links above. On the contrary, I believe JuliaPraxis was born precisely from the need of having some place to discuss this bike shedding in order to improve the "official" style stuff without nagging everyone else with non priority "noise". If the problem is that the style guide is not in this repository, then it would be easy to add those documents here, the issue remains the same, we need to discuss and enforce the agreed official guidelines, sooner or later. This kind of things may not impact something as crucial as performance, so it's not top priority, I get it, but they impact the users and their development time IMO. As a mater of fact I'd rather have those style guides here and abandon further discussions on JuliaPraxis, than having JuliaPraxis exist but be considered "not official" and thus being ignored, Currently what is considered to be "julian" is exported from this repo to the community, though some bad practices are being exported too. |
they are not official -- they exist to encourage something official, and to contribute to that (they represent the views of a dozen or so of the more involved contributors at the time) |
There are many one letter argument names, that really should be more mnemonic IMHO, things like
r
/f
for replacement, for example. While all objects should be documented someday, good names should be a must for the public Julia API, since method signatures, argument and parameters names are part of this API.Reference: #25165 (comment)
The text was updated successfully, but these errors were encountered: