mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Correct typo
This commit is contained in:
parent
75c1cecee1
commit
4d12bd10bc
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue