-
Notifications
You must be signed in to change notification settings - Fork 32
[#17] Rename MultiSet to Bag #24
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
Conversation
Could you consider adding aliases something like @deprecated("Use Bag instead", "0.1.1")
type MultiSet = Bag so existing users can notice deprecation and consider migration. |
b87bd3a
to
100b3ad
Compare
@exoego if I were to implement that with package objects (because types cannot be at top level) then I would run into conflicts of package objects with the canonical |
I don’t see a nice solution to this problem. Would that work to define a deprecated class? @deprecated("Use Bag instead", "0.1.1")
class MultiSet[A] extends Bag[A] |
At that point, maybe just leave in the MultiSet implementation, as deprecated, and include the new Bag implementation separately? |
You can define type aliases in package object. |
ah sorry, you already mentioned conflict in that approach |
How about this change? joshlemer#1 |
@exoego that is the change that I tried to make but it resulted in compile errors, I'm pretty sure because of the duplicate package objects, but I'll merge that in for now and see how the CI handles it. |
Preserve deprecated MultiSet as type alias of Bag
@joshlemer no activity in a while — should this stay open? |
I ended up being blocked by #64 (and I think still would be) and so wasn't able to work on this any longer, but I still think Bag is a better name and worth switching to |
#17
Other changes: