>
> it silently uses :: in a different sense than anywhere else in the language


I started writing a reply here, but realized it would be more instructive 
to have it as an IJulia notebook, where we can actually inspect the values 
of various statements along the way - take a look here 
instead: 
http://nbviewer.ipython.org/github/tlycken/IJulia-Notebooks/blob/master/A%20more%20thorough%20look%20at%20Julia's%20%22double%20colon%22%20syntax.ipynb

I hope it makes things a little clearer. I tried to base it on the relevant 
section on `::` in the manual 
(http://docs.julialang.org/en/latest/manual/types/#type-declarations) and 
expand it with more examples etc, so I hope it's possible to see the 
connections.

// T

Reply via email to