-
Notifications
You must be signed in to change notification settings - Fork 641
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
RFC: Making naming in the standard library consistent #1516
Comments
@edwinb I am unsure if you want to keep the conventions in the effect package, but I could suggest new conventions if you are interested. |
If anyone sees that I have missed something, please add a comment. |
Thanks for being so systematic! Personally, I am in favor of some of these, but not all of them. I like the idea of capitalizing the currently-lowercase constructor and type names, and I think it's worth seeing if renaming the Fin constructors from Giving the product and unit constructors user-accessible names might be useful. I've certainly wanted to use them that way. For some reason I don't think The names in the sockets lib come from the underlying C API, don't they? If so, I think we should leave them be, for the sake of familiarity. |
Just a +1 on this. I see no real problems with the suggestions. I somewhat agree with @david-christiansen's stance on the naming of sockets lib. It is a good idea to keep them as is for familiarity; the socket names have been directly lifted from the underlying C implementation. However, I also think that the alternatives are sufficient enough to warrent a change. Note that the list for socket names is incomplete, and there is another field IIRC. Also I think internals should be kept as scary as possible. It makes them standout easierly. |
OK, I will update the table accordingly. |
I vote "do it now", if @edwinb doesn't have any objections. Perhaps we can do this, then get a release out, and given that we don't have a migration warnings system, just eat the temporary support overhead? |
@david-christiansen I am trying to do it, but unfortunately I am having issues with the renaming. |
How would people feel if I made |
Also |
I'm not a fan of changing These things don't seem to be the case for |
Updated the table with corresponding |
Huh, but |
Melvar: I have reproven everything for |
As far as I can tell, this is all done now. Can I close this? |
Yes, sure. I will close this issue. |
As an extension to the mail I sent to the mailing list, I am now gathering together all type constructors and data constructors with inconsistent naming and listing them here in a table with suggested fixes.
Package
prelude
:Package
base
:UnspecifiedIPv4IPv6The text was updated successfully, but these errors were encountered: