-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docstrings for class/actor members #106
Comments
I prefer the first option |
The second option has potential to have confusing edge cases when you didn't include class/actor-level docs. I'm not opposed to the first option, and I do think it's parseable in theory. |
Definitely the first. The 2nd is confusing. |
I also thought putting it right after the type and before the optional assignment but this resulted in much more confusing code imo. Just for demonstration purposes: let field: String """docstring""" = "value"
let another_field: U8
"""
docstring
"""
= 0 |
I am nonetheless also open for the solution of the docstring right after the type and before the optional assignment. If this is what you prefer. |
In the go language all documentation is before the item being documented. What I know about docstring is that it is after the item, so I'd opt for the first option, more consistent so less to remember. |
Optionally allow docstrings for class/actor fields below or above the field definition.
I would like your opinion on this. Maybe a kind of a vote,
No
,Above
orBelow
?The text was updated successfully, but these errors were encountered: