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

RFC: Syntax for read- and write- access to properties #15

Merged
merged 4 commits into from
Jan 13, 2024

Conversation

@andyfriesen andyfriesen merged commit 8eea676 into master Jan 13, 2024
@andyfriesen andyfriesen deleted the read-write-table-syntax branch January 13, 2024 00:03
vegorov-rbx added a commit to luau-lang/luau that referenced this pull request Jan 19, 2024
### What's changed?
* Syntax for [read-only and write-only
properties](luau-lang/rfcs#15) is now parsed,
but is not yet supported in typechecking

### New Type Solver
* `keyof` and `rawkeyof` type operators have been updated to match final
text of the [RFC](luau-lang/rfcs#16)
* Fixed issues with cyclic type families that were generated for mutable
loop variables

### Native Code Generation
* Fixed inference for number / vector operation that caused an
unnecessary VM assist

---
### Internal Contributors
Co-authored-by: Aaron Weiss <[email protected]>
Co-authored-by: Andy Friesen <[email protected]>
Co-authored-by: Lily Brown <[email protected]>
Co-authored-by: Vyacheslav Egorov <[email protected]>
@potatoprank
Copy link

potatoprank commented Jan 22, 2024

Just passing through and commenting here just as a random person with no context on the development of this feature :).

Can we add to the documentation what this feature actually does?

Also, a little unclear to me the use case and implications for allowing different read/write types. Seems like unnecessary complexity to support a niche use case I'm not familiar with so my first reaction is 👎

@potatoprank
Copy link

potatoprank commented Jan 22, 2024

Specifically, it's unclear to me from the document what it means for a property of some type to be read/write only. I may have missed it. I did kind of tldr; the doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants