-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
Co-authored-by: Alexander McCord <[email protected]>
### 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]>
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 👎 |
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. |
Rendered: https://github.com/luau-lang/rfcs/blob/master/docs/syntax-property-access-modifiers.md
Previous PRs: