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

Fix is_ts_tuple #386

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Fix is_ts_tuple #386

merged 1 commit into from
Apr 2, 2024

Conversation

n-osborne
Copy link
Contributor

This PR proposes to change the implementation of the Ttypes.is_ts_tuple function so that it doesnt confuse unit for a tuple of length 0.

This has the immediate benefit of concentrating the logic in the function rather than having to check that a type symbol is not ts_unit before calling is_ts_tuple (hence the simplifcation of the condition in Typing.process_val_spec.

This also improves the state of ortac#207

Copy link
Contributor

@shym shym left a comment

Choose a reason for hiding this comment

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

Simple and to the point, LGTM!

@n-osborne n-osborne merged commit f8a38c4 into ocaml-gospel:main Apr 2, 2024
3 checks passed
@n-osborne n-osborne deleted the fix-is_ts_tuple branch April 2, 2024 15:36
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