-
Notifications
You must be signed in to change notification settings - Fork 37
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
Improve consistency of constructor names for MutableVec and MutableBTreeMap #64
Comments
I agree that a This is a very interesting case. According to the official guidelines the correct name is either The stdlib is actually not following that official convention, because it uses |
That is interesting, perhaps the official guidelines have not been updated? After all, I guess adding the |
The API guidelines are updated regularly (the last change was in June 2022), and there are examples in the stdlib which follow the naming convention (such as But on the other hand you have things like
It does recommend to use the builder pattern for complex constructors. That doesn't apply for Signals, since there's only 2
Of course. |
So I encountered a small (unrelated) issue while trying to run the tests:
Working around this for the moment by commenting out line 4 of lib.rs, however, some of the tests seem to hang:
Any thoughts? I am using:
|
This is a breaking change for a potential 0.4 release. I would propose the
MutableBTreeMap::with_values
andMutableVec::new_with_values
be made consistent or even better, removed and replaced with implementations ofFrom<Vec<T>> for MutableVec<T>
andFrom<BTreeMap<K,V>> for MutableBTreeMap<K,V>
. In the standard library, thewith_
prefix is usually only for specifying capacity or a hasher, but not the values.The text was updated successfully, but these errors were encountered: