Skip to content

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

Merged
raphael-proust merged 3 commits into
ocsigen:masterfrom
esope:experimental
Jul 24, 2021
Merged

raphael-proust merged 3 commits into
ocsigen:masterfrom
esope:experimental

Conversation

@esope

@esope esope commented Mar 30, 2021

Copy link
Copy Markdown
Contributor

Removed an unnecessary Obj.magic

@raphael-proust

Copy link
Copy Markdown
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

esope commented Apr 26, 2021

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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
Copy Markdown
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