Skip to content

Monadic modalities always implied by mutable#2900

Merged
goldfirere merged 3 commits intomainfrom
no-mutable-modality-v2
Aug 8, 2024
Merged

Monadic modalities always implied by mutable#2900
goldfirere merged 3 commits intomainfrom
no-mutable-modality-v2

Conversation

@riaqn
Copy link
Copy Markdown
Contributor

@riaqn riaqn commented Aug 7, 2024

#2716 introduced the @no_mutable_implied_modalities attribute that disables the legacy modalities implied by mutable, including both monadic and comonadic axes.

In the long run, the implication on the comonadic axes will be disabled by default, and this attribute allows us to experiment with that currently. However, the implication on the monadic axes will stay in the future (more details to be found in the internal doc "Modes and mutations") as it gives the best ergonomics. Therefore, the attribute should not affect the monadic axes. This PR fixes that.

@riaqn riaqn requested a review from goldfirere August 7, 2024 12:55
@riaqn riaqn requested a review from goldfirere August 8, 2024 15:10
@goldfirere goldfirere merged commit d6a0e67 into main Aug 8, 2024
@goldfirere goldfirere deleted the no-mutable-modality-v2 branch August 8, 2024 16:02
lukemaurer pushed a commit to lukemaurer/flambda-backend that referenced this pull request Oct 23, 2024
…#2900)

* monadic modalities always implied by mutable

* refactor the logic

* add tests
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.

3 participants