Is there a preference to document optional parameters or are both ways good enough?

Personally I tend to use that style: `@param {Number} [foo=1]`