What are :param and :reader, etc officially called? #68
-
What are :param and :reader etc officially called? Attribute? https://github.com/Ovid/Cor/blob/master/rfc/attributes.md#623-field-attributes Modifier? https://github.com/Ovid/Cor#kim
If the name "Modifier" was used, the name is duplicated with "Method Modifier". |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
They don't have an "official" name, though they should. When I argued for the KIM (Keyword, Identifier, Modifier) syntax, based on Damian Conway's feedback, I chose the term "modifier" largely to avoid the overloaded word "attribute." I was surprised at how easily people accepted the proposal, but we've struggled so long to even get the syntax and semantics down that we never formally agreed on naming. This should probably be addressed because [the |
Beta Was this translation helpful? Give feedback.
-
While the term "attribute" is a bit overloaded, in perl syntax it does have a specific meaning. And these modifiers are using that attribute syntax. So I'd say that these are attributes. |
Beta Was this translation helpful? Give feedback.
-
OK. I understand it is called ATTRIBUTE for now.
|
Beta Was this translation helpful? Give feedback.
While the term "attribute" is a bit overloaded, in perl syntax it does have a specific meaning. And these modifiers are using that attribute syntax. So I'd say that these are attributes.