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

ref(reduce): Allow to reduce to non-cloneable values #346

Merged
merged 1 commit into from Mar 27, 2024

Conversation

untitaker
Copy link
Member

The ergonomics are slightly worse, but I am in a position right now
where the value absolutely cannot be cloneable, and working around those
trait constraints would be even less ergonomical.

The ergonomics are slightly worse, but I am in a position right now
where the value absolutely cannot be cloneable, and working around those
trait constraints would be even less ergonomical.
@untitaker untitaker requested review from a team as code owners March 27, 2024 11:27
Copy link
Member

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

this indeed looks ugly :-(
Curious to see why you would need to resort to not having this be Clone.

@untitaker
Copy link
Member Author

@Swatinem We'll see, maybe I am going to revert this PR, but I am pretty sure it's for the better. I can also imagine there to be some ergonomic shortcuts for the Clone usecase

@untitaker untitaker merged commit a42e954 into main Mar 27, 2024
11 checks passed
@untitaker untitaker deleted the ref/reduce-function branch March 27, 2024 11:40
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