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

Add RFC for syntax for property access #3

Closed

Conversation

asajeffrey
Copy link
Contributor

No description provided.

@asajeffrey
Copy link
Contributor Author

@asajeffrey
Copy link
Contributor Author

Moved from luau-lang/luau#284

@andyfriesen
Copy link
Collaborator

I have a PR in the works that implements the following syntax:

type A = {x: number}                        -- Read-write
type B = {read x: number}                   -- Read only
type C = {write x: number}                  -- Write only
type D = {read x: string, write x: "hello"} -- Read type and write types are not the same

It should be quite rare that a person actually has to write the syntax for D.

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.

2 participants