Correct typo

This commit is contained in:
Micah 2023-11-14 10:54:13 -08:00 committed by GitHub
parent 75c1cecee1
commit 4d12bd10bc
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ local function example()
end
```
Attributes with parameters are not included in this porposal because it's unclear what the syntax and limitations should be. However, the syntax proposed would not conflict with a future addition of parameters provided they used proper delimiters.
Attributes with parameters are not included in this proposal because it's unclear what the syntax and limitations should be. However, the syntax proposed would not conflict with a future addition of parameters provided they used proper delimiters.
User-defined attributes are not proposed because they are considered incompatible with Luau's goals of being a simple but safe-to-embed language. Since the compiler would at least in part be controlled by attributes, allowing them to be implemented by users would be either prohibitively complex or unsafe.
@ -87,4 +87,4 @@ Other potential syntaxes that were considred include a Rust-style syntax (`#[att
- Comments beng used to control language features and flow means that tooling and users must care about them, which is antithetical to how comments are traditionally used
As proposed, attributes would only be applicable on functions at first. They could instead be added to the entire language at once, which would facilitate widespread adoption immediately. However, that is a lot more work, and most of the potential uses for attributes are on functions, so it makes sense to begin with them.
As proposed, attributes would only be applicable on functions at first. They could instead be added to the entire language at once, which would facilitate widespread adoption immediately. However, that is a lot more work, and most of the potential uses for attributes are on functions, so it makes sense to begin with them.