diff --git a/docs/syntax-attributes-functions.md b/docs/syntax-attributes-functions.md index 46a4a81..6964810 100644 --- a/docs/syntax-attributes-functions.md +++ b/docs/syntax-attributes-functions.md @@ -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. \ No newline at end of file +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.