Skip to content
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

Block comments vs. line comments #18

Open
Prevole opened this issue Nov 16, 2012 · 2 comments
Open

Block comments vs. line comments #18

Prevole opened this issue Nov 16, 2012 · 2 comments

Comments

@Prevole
Copy link

Prevole commented Nov 16, 2012

HI again,

Just a quick question to understand why the behavior of comments is not the same for line and block comments.

If I write something like that:

###
My line of description

@param {String} paramName And the parameter description
@return {Object} And the return description
###

The JSDoc like is generated in the documentation as expected, but if I write that:

# My line of description
#
# @param {String} paramName And the parameter description
# @return {Object} And the return description

The doc generated is a simple documentation without the JSDoc for @param and @return

Is it a restriction of Docker or other restriction?

@jbt
Copy link
Owner

jbt commented Nov 19, 2012

The thinking behind this is that in JavaScript and other languages, the jsDoc/PHPDoc/etc. syntax is only valid for /* ... */-style block comments rather than inline // ... comments. As there's no official way of implementing jsDoc in CoffeeScript I decided to keep it as block comments do jsDoc, inline comments don't, to avoid unnecessary mess. If you think it's something important, I can have a look and see if it's possible to change.

@Prevole
Copy link
Author

Prevole commented Nov 19, 2012

I understand. For me it is not so important. I was used to comment only with line comments in Coffee (maybe a bad habbits). I did not realized that the jsDoc and so follow this rule (that has some logic).

I do not want to introduce a difference in the behavior as I can take the habits to use block comments to comment my functions and classes. That's fine for me.

Thanks for your explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants