Skip to content

Conversation

strub
Copy link
Member

@strub strub commented Mar 4, 2025

This commit introduces the following syntax:

  • m.[:(ty) k] for (m.[k] :~ ty)
  • m.[:(ty) k <- v] for m.[k <- (v :~ ty)]
  • m.[:(ty) k] <- k for m.[k] <- (v :~ ty)

This helps disambiguate the selection of getters and setters using the type of the map's values.

@strub strub self-assigned this Mar 4, 2025
@strub strub requested a review from bgregoir March 4, 2025 11:07
This commit introduces the following syntax:

  - `m.[:(ty) k]` for `(m.[k] :~ ty)`
  - `m.[:(ty) k <- v]` for `m.[k <- (v :~ ty)]`
  - `m.[:(ty) k] <- k` for `m.[k] <- (v :~ ty)`

This helps disambiguate the selection of getters and setters using
the type of the map's values.
@strub strub enabled auto-merge (rebase) May 25, 2025 06:47
@strub strub merged commit 508436e into main May 25, 2025
15 checks passed
@strub strub deleted the getter-setter branch May 25, 2025 07:10
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