[] is used to indicate that some parameters is optional, but it is not used consistently throughout julia documentation.
See https://github.com/JuliaLang/julia/issues/4902 for some discussion. kl. 09:42:43 UTC+2 tirsdag 29. juli 2014 skrev Roy Wang følgende: > > Hi everyone, I started using Julia since last Saturday for my PhD work. My > background in programming is mostly C++, C, and some > non-performance-oriented MATLAB. I have never used R. Despite my lack of > modern programming languages, I was able to convert some of my previous > prototype code from MATLAB within hours. Thank you all for your hard work > in contributing to this language! > > I have some questions about the format of the documentation. Consider the > *sparse(I, > J, V[, m, n, combine]**)* function. After some trial-and-error at 3am, I > finally figured out I just add *m* and *n* to the argument list of > *sparse()* if I wish to specify the size of the sparse matrix with this > constructor function. > > 1) Does this mean the notation [, blah, blah2, ...] in the documentation > mean "blah, blah2, ..." are all optional arguments? > > 2) If this a standard notation across other modern object-oriented > languages, would it be possible to make a wikipedia link to this > notation, and put it on the tutorial or the documentation page? If this > isn't a standard notation, would it be possible to include a short example > in the documentation? >
