Style preference for doc comments in Squirrel #759
GeckoEidechse
started this conversation in
Polls
Replies: 2 comments 2 replies
-
just noting here that if you want these to show on ModdingDocs you'll have to translate them to .rst syntax |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm inclined to say that having not only decorators, but also ASCII Art because yes. But if others don't want, then fine i guess, no decoratiors is already what we work with. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
In order to achieve the goal of autogenerating documentation for Squirrel code we need some way to indicate doc comments.
The rough style was already chosen in a past poll on Discord, including using triple slash (
///
) to differentiate doc comments from standard code comments (//
) as well as the rough format for arguments and return values.What remains is to decide whether to include decorators (
///------
) in the doc comments or not.Poll
What speaks in favour of decorators:
What speaks against decorators:
Examples
Decorators
No decorators:
If you have any further arguments in favour or against decorators, please LMK and I'll add them to the poll
13 votes ·
Beta Was this translation helpful? Give feedback.
All reactions