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

Restore compatibility with OCaml 4.14 #6926

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Jul 30, 2024

No description provided.

@cknitt cknitt requested review from cometkim and cristianoc July 30, 2024 13:58
let hash = Hashtbl.hash (* polymorphic hash function *)
end
include Hashtbl.Make (StringHash)
#endif

let of_array arr =
let tbl = create (Array.length arr) in
Copy link
Collaborator

Choose a reason for hiding this comment

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

Great
One could also always redefine compare.
But conditional compilation depending on compiler version is also fine as it does not add much complexity.

Copy link
Member

@cometkim cometkim left a comment

Choose a reason for hiding this comment

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

Ok as we discussed, if we verify this in CI it should be fine.

We can keep conditions here and other places until we revisit the compiler version decision later.

@cknitt cknitt merged commit 49dfc47 into rescript-lang:master Jul 30, 2024
17 checks passed
@cknitt cknitt deleted the fix-4-14 branch July 30, 2024 16:15
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