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

Miscellaneous additions #1

Merged
merged 36 commits into from
Aug 9, 2023
Merged

Miscellaneous additions #1

merged 36 commits into from
Aug 9, 2023

Conversation

pxeger
Copy link
Contributor

@pxeger pxeger commented Aug 3, 2023

For a bunch of small, fairly logically separate, changes like this, is it better to make one big PR like this, or split into many smaller PRs? I thought I'd choose this option so it would be easier to merge, but is that a bad idea because it makes it harder to "pick and choose" changes?

@pxeger pxeger requested a review from yallop August 3, 2023 14:54
@yallop
Copy link
Member

yallop commented Aug 3, 2023

One big PR is fine. It's easy enough to cherry-pick the commits if necessary.

yallop
yallop previously requested changes Aug 3, 2023
lib/control.ml Outdated Show resolved Hide resolved
lib/control.ml Outdated Show resolved Hide resolved
lib/control.ml Outdated Show resolved Hide resolved
Co-authored-by: Daniel Vlasits <dvlasits@gmail.com>
Co-authored-by: Daniel Vlasits <dvlasits@gmail.com>
lib/control.ml Outdated Show resolved Hide resolved
lib/any.ml Outdated Show resolved Hide resolved
lib/control.ml Outdated Show resolved Hide resolved
let fmap m (a, b) = (a, m b)
end

type ('a, 'b) const = Const of 'a
Copy link
Member

Choose a reason for hiding this comment

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

I wonder whether this can be defined simply as

Suggested change
type ('a, 'b) const = Const of 'a
type ('a, 'b) const = 'a

If it does need to be a proper (generative) type, it'd be better as a record, so that it's easy to destruct as well as construct:

type ('a, 'b) const = { const: 'a }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Daniel wants me to merge this so I'm going to make this an issue and deal with it later

lib/data.ml Show resolved Hide resolved
@pxeger pxeger marked this pull request as ready for review August 9, 2023 13:06
@pxeger pxeger merged commit a571e9f into master Aug 9, 2023
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.

3 participants