Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Conversation

julienrf
Copy link
Contributor

@szeiger is that OK for you to merge this?

@julienrf julienrf requested a review from szeiger June 29, 2017 06:45
szeiger and others added 4 commits June 29, 2017 09:06
`BuildFrom` is like `FromSpecificIterable` but with an extra `From`
argument, like in the final version of #45. `FromSpecificIterable`
existed conceptually in that version as `BuildFrom[Any, …]` but didn’t
have a separate type.

This new version has separate abstractions for buildable (strict)
collection types in the form of `StrictBuildFrom` and
`FromSpecificIterableWithBuilder`. Since we can get a surrogate builder
(through one of the new `Builder.from` methods) for any lazy collection
and we can restrict code to work only with strict collections via the
`Buildable` trait, this is not strictly necessary. The only reason for
separating the `Builder` abstractions is to avoid exposing them in
`FromSpecificIterable`. Even though everything can be built in a strict
way, these abstractions sit on top of the lazy ones, not below them.
Consistently order the collection type constructor (`CC`) and collection (`C`) type in `SortedOps`
Remove default implementations of newBuilder method.
@julienrf julienrf force-pushed the new-strict-building-fixes branch from 1d0fecb to bfbfc0e Compare June 29, 2017 07:49
@julienrf
Copy link
Contributor Author

I rebased #114 on master and squashed all the commits into a single one. Then I fixed the compilation errors.

@szeiger
Copy link
Contributor

szeiger commented Jun 29, 2017

So did I because that's what we discussed in this week's meeting. Except that my rebase effort wasn't quite finished yet because #110 split up the factories into strict and lazy ones despite our preference for having strict building everywhere in the previous meeting. We need to be more efficient with how we spent our time.

Copy link
Contributor

@szeiger szeiger left a comment

Choose a reason for hiding this comment

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

From a cursory look this fixes the Dotty problems, undoes #110 and swaps the type params on SortesOps. That's what I was going for as well.

@julienrf julienrf merged commit 6ca2383 into master Jun 29, 2017
@julienrf julienrf deleted the new-strict-building-fixes branch June 29, 2017 11:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants