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

removed the unnecessary "ugly cast" from function add_cancel_callback #844

Merged
merged 3 commits into from
Jul 24, 2021

Conversation

esope
Copy link
Contributor

@esope esope commented Mar 30, 2021

Removed an unnecessary Obj.magic

@raphael-proust
Copy link
Collaborator

I pushed a commit, but it's more of a suggestion. The idea is to use the named type alias (cancel_callback) instead of the expanded definition (unit -> unit) in places where it is used. This is sort of complementary to the removal of the cast so I pushed it here.

If you prefer, I'll push it in its own branch and merge it through there.

@esope
Copy link
Contributor Author

esope commented Apr 26, 2021

This change is a good idea, indeed. Thanks. Makes things clearer. No need to add this change somewhere else and then merge it.

@raphael-proust
Copy link
Collaborator

@esope I'll rebase this branch on master so that it goes through the newer CI system that landed there. I'll mere it once it passes that CI.

@raphael-proust
Copy link
Collaborator

I rebased on master and resolved the conflict (which was only in the changelog)

@raphael-proust raphael-proust merged commit 5b2514f into ocsigen:master Jul 24, 2021
@esope esope deleted the experimental branch July 27, 2021 13:18
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.

2 participants