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

Make Stream covariant to match regular collections #126

Merged
merged 3 commits into from
Nov 11, 2017

Conversation

shadaj
Copy link
Contributor

@shadaj shadaj commented Nov 6, 2017

This should fix the weird typing issues we encountered earlier, such as not being able to view a stream of Nones as a stream of Options.

This should fix the weird typing issues we encountered earlier, such as not being able to view a stream of `None`s as a stream of `Option`s.
@shadaj shadaj self-assigned this Nov 6, 2017
@codecov
Copy link

codecov bot commented Nov 9, 2017

Codecov Report

Merging #126 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #126   +/-   ##
=======================================
  Coverage   58.84%   58.84%           
=======================================
  Files          68       68           
  Lines        1329     1329           
  Branches      123      123           
=======================================
  Hits          782      782           
  Misses        547      547
Impacted Files Coverage Δ
...om/lynbrookrobotics/potassium/streams/Stream.scala 91.01% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ad40db...a4563a6. Read the comment docs.

@shadaj
Copy link
Contributor Author

shadaj commented Nov 9, 2017

Ping @paxelord for review

Copy link
Contributor

@PhilipAxelrod PhilipAxelrod left a comment

Choose a reason for hiding this comment

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

lgtm

@PhilipAxelrod PhilipAxelrod merged commit 25afed8 into master Nov 11, 2017
@PhilipAxelrod PhilipAxelrod deleted the stream-variance branch November 11, 2017 03:46
PhilipAxelrod pushed a commit that referenced this pull request Dec 7, 2017
* Make Stream covariant to match regular collections

This should fix the weird typing issues we encountered earlier, such as not being able to view a stream of `None`s as a stream of `Option`s.

* Remove unused `Value` type member

* Add unit test for covariant behavior
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.

None yet

2 participants