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

refactor: Use Stdlib.String(Labels) implementations if available #10825

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

Leonidas-from-XIV
Copy link
Collaborator

This uses the Stdlib implementations if the stdlib supports these. Has the advantage that if the stdlib has an optimized implementation, we automatically get to benefit of it.

This uses a trick to define the fallback functions and overwrite them if they're available in the included module, otherwise they will be used. Needs to silence warning 32 but that's a small price to pay to avoid conditional compilation.

This uses a trick to define the fallback functions and overwrite them if they're
available in the included module, otherwise they will be used. Needs to
silence warning 32 but that's a small price to pay to avoid conditional
compilation.

Signed-off-by: Marek Kubica <marek@tarides.com>
@Leonidas-from-XIV Leonidas-from-XIV merged commit dddf3bc into ocaml:main Aug 14, 2024
28 checks passed
@Leonidas-from-XIV Leonidas-from-XIV deleted the use-stdlib-code branch August 14, 2024 14:56
anmonteiro pushed a commit to anmonteiro/dune that referenced this pull request Nov 17, 2024
…caml#10825)

This uses a trick to define the fallback functions and overwrite them if they're
available in the included module, otherwise they will be used. Needs to
silence warning 32 but that's a small price to pay to avoid conditional
compilation.

Signed-off-by: Marek Kubica <marek@tarides.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants