Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"v" is the variable name, and the square brackets around it mean it's optional. There is no type specified for this parameter, so nothing in curly brackets.


Are these the definitive docs: http://code.google.com/closure/compiler/docs/js-for-compiler...

Because I don't see square brackets for optional in there.


It might not be part of the official spec, but it's a convention that we use in my office and I've seen a number of other places as well.

[edit] Here we go. This is the JSDoc we use, and presumably Protovis does too. Take a look at the Optional Parameters section: http://code.google.com/p/jsdoc-toolkit/wiki/TagParam




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: