Skip to content

Conversation

@kit-ty-kate
Copy link
Collaborator

Queued on #23

if Lib.List.last hunk.mine = (Lib.List.last hunk.their : string) then
let rev_mine = List.rev hunk.mine in
let rev_their = List.rev hunk.their in
if List.hd rev_mine = (List.hd rev_their : string) then
Copy link
Owner

Choose a reason for hiding this comment

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

Can we use String.equal explicitly here to avoid the potential polymorphic compare? I understand that the : string should enable the OCaml compiler to use the right function, but I prefer to be explicit.

@hannesm
Copy link
Owner

hannesm commented Jun 4, 2025

this looks fine to me, feel free to merge when you're ready.

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