-
Notifications
You must be signed in to change notification settings - Fork 504
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
Differentiate documentation and non-documentation comment syntax #495
Comments
Good idea. But I'm not a fan of usurping shebang syntax for it. For those who are not yet or just getting familiar with the concepts of shebangs and their usage this could be very confusing. The following feel better in my mind.
|
Although it might be mistaken for user styling, I think out of those I like |
This would be great to support #553. Being able to say in a doc string "I'm going to build X and put it in location (configurable via e.g. .env) Y" would add so much power to concise documentation. |
@dionjwa Great point! Adding dedicated doc-comment syntax would allow for introducing new features. |
I think that using |
What about
Actually, now that I write this, I would favour that This would be a breaking change, but worth it for such a useful feature. |
There is now a |
Consider giving documentation comments a dedicated syntax. The syntax that I currently favor is
##
for doc-comments.Pros:
--list
output. (See below for an example.)Cons:
##
is used by around 1% of justfiles that I've scraped from GitHub. (This doesn't count###
, since we can ignore comments that start with###
to make it a less disruptive change.) Options like#:
would be less disruptive, but weirder.If I did this, I would first make Just strip additional
#
s from existing doc-comments. This would make it so there would be a period where#
and##
comments would work, to make the change less disruptive. (If this wasn't done, then you would seebuild # # description
if you tried to use##
doc-comments.)I'm still on the fence about this change. I think it would be nice, and if I was writing Just from scratch I would certainly do it from the beginning. However, I'm unsure if it's worth it, given that there are many Justfiles out there.
This could be given a phased roll-out:
##
comments work without an additional#
appearing in--list
output#
comment is picked up as a doc-comment#
as doc-commentsMulti-line doc-comment example
The text was updated successfully, but these errors were encountered: