Skip to content

Share transl_modalities code with transl_modifiers and transl_modes#2925

Merged
liam923 merged 6 commits intomainfrom
liam-translmodifier-modalities
Aug 30, 2024
Merged

Share transl_modalities code with transl_modifiers and transl_modes#2925
liam923 merged 6 commits intomainfrom
liam-translmodifier-modalities

Conversation

@liam923
Copy link
Copy Markdown
Contributor

@liam923 liam923 commented Aug 14, 2024

#2730 introduced typemodifier.ml, which shares translation logic between jkinds and modes. But although the modality translation code was similar, it was not abstracted into typemodifier.ml. This PR does so.

@liam923 liam923 added the typing label Aug 14, 2024
@liam923 liam923 requested a review from riaqn August 14, 2024 14:56
@liam923 liam923 requested a review from riaqn August 19, 2024 21:37
Copy link
Copy Markdown
Contributor

@riaqn riaqn left a comment

Choose a reason for hiding this comment

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

Thanks for refactoring - I've a pushed a commit containing minor edits (that resolves the comments below) and some inline CRs (that will be done in the future). Feel free to merge once CI is green, thanks!

@riaqn riaqn force-pushed the liam-translmodifier-modalities branch from b621ab0 to f112f1c Compare August 29, 2024 15:16
@liam923 liam923 merged commit f8915e0 into main Aug 30, 2024
@liam923 liam923 deleted the liam-translmodifier-modalities branch August 30, 2024 15:22
riaqn added a commit that referenced this pull request Sep 9, 2024
…des` (#2925)

* Subsume transl_modalities into Typemode

* Modify error message for unrecognized modifier and add jkind tests

* Fix formatting

* Add jkind_axis and refactor typemodifier into typemode

* Reformat

* some edits

---------

Co-authored-by: Zesen Qian <github@riaqn.org>
lukemaurer pushed a commit to lukemaurer/flambda-backend that referenced this pull request Oct 23, 2024
…s` and `transl_modes` (oxcaml#2925)

* Subsume transl_modalities into Typemode

* Modify error message for unrecognized modifier and add jkind tests

* Fix formatting

* Add jkind_axis and refactor typemodifier into typemode

* Reformat

* some edits

---------

Co-authored-by: Zesen Qian <github@riaqn.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants