Skip to content
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

scala.collection.Map algebras #199

Merged
merged 6 commits into from
Sep 18, 2013
Merged

Conversation

mikegagnon
Copy link
Contributor

No description provided.

class MapRing[K,V](implicit val ring : Ring[V]) extends MapGroup[K,V]()(ring) with Ring[Map[K,V]] {
trait GenericMapRing[K, V, M <: ScMap[K, V]] extends Ring[M] with MapOperations[K, V, M] {

implicit val ring : Ring[V]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def not val. You can override def with val, not the other way around. val in trait is dangerous due to the init order bug.

@johnynek
Copy link
Collaborator

Nice work. Way to solve the cast issue. Nice types!

@johnynek
Copy link
Collaborator

johnynek added a commit that referenced this pull request Sep 18, 2013
scala.collection.Map algebras
@johnynek johnynek merged commit e6a97b1 into twitter:develop Sep 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants