cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clelland <>
Subject [GitHub] cordova-plugin-camera pull request: Update
Date Mon, 31 Mar 2014 17:37:14 GMT
Github user clelland commented on the pull request:
    Not just shell commands; other languages with optional parameters use this notation as
    When describing a function, I've seldom seen square brackets meaning "An array goes here".
Certainly in example code, or snippets that say things like
    "Call it like this: `foo(bar, baz, [item, item, ...])`",
    but not when declaring the function signature.
    My feeling is that square brackets are pretty universally used to mean "optional", but
more strongly than that, I think we'd need a good way to denote optionality if we drop them.
Just dropping the square brackets and leaving the three arguments shown the same way is leaving
out some of the most important information for a reader who wants to know how to call the

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message