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

Use Vec<Operation> instead of newtype Operations #443

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

djmitche
Copy link
Collaborator

@djmitche djmitche commented Aug 5, 2024

Exposing the full functionality of a Vec here is more useful than utility functions on a newtype, especially when building a Cxx bridge.

This is a big diff, but aside from the main change in operation.rs, consists almost entirely of changing ops.add to ops.push, with a few related test changes.

This will be the last change for #372, and without objection I will release 0.7.0 when this is merged.

Exposing the full functionality of a Vec here is more useful than
utility functions on a newtype, especially when building a Cxx bridge.

This is a big diff, but aside from the main change in `operation.rs`,
consists almost entirely of changing `ops.add` to `ops.push`, with a few
related test changes.
@djmitche djmitche linked an issue Aug 5, 2024 that may be closed by this pull request
@djmitche djmitche requested a review from ryneeverett August 5, 2024 21:14
Copy link
Collaborator

@ryneeverett ryneeverett left a comment

Choose a reason for hiding this comment

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

You know, I almost suggested this when reviewing Operations the first time -- it seemed like an extra abstraction which wasn't "buying" us much over a Vec. But it wasn't a terribly expensive abstraction so I figured I'd let you have it -- but I guess cxx isnt' so generous. :)

taskchampion/src/replica.rs Show resolved Hide resolved
@djmitche djmitche enabled auto-merge (squash) August 7, 2024 00:22
@djmitche djmitche merged commit 33c538d into GothenburgBitFactory:main Aug 7, 2024
13 checks passed
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.

Reconsider "level" of the Task/TaskMut interface
2 participants