Skip to content

luau const #167

Description

@GooseGoldenGoose

What lua version(s) is this feature from?

Luau

What feature are you requesting?

luau have const variable now
const a = 42 print(a)

Can you go in further detail of what this feature is about?

const keyword for defining constant bindings that are statically forbidden to be reassigned to

Please ensure you have done the following actions:

  • I have checked that there are no similar requests already open.
  • I have confirmed that this has not been implemented on the latest nightly version.
  • I have confirmed that this is a custom syntax that requires modifications to be supported.
  • I acknowledge my issue will be closed if any step has been skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions