<p dir="auto">Currently "[1:5]" represents "[1, 2, 3, 4, 5]".<br>
But ranges are not the same as arrays!<br>
"[1:5]" should not equal "[1, 2, 3, 4, 5]"!</p>
<p dir="auto">I believe we need to be able to create array of ranges in a concise way. For example, "[1:5, 1:3]" should be an array of two ranges: "1 to 5" and "1 to 3".<br>
Range(s) between "[" and "]" should still be range(s).</p>
<p dir="auto">We could convert range to array: "convert(Array, 1:5)" would give "[1, 2, 3, 4, 5]".<br>
It is clear that it is not a must-do for "[1:5]" representing "[1, 2, 3, 4, 5]".<br>
So, why not consider "a..b" ?</p>
<p dir="auto">Related issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48192411" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/8949" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/8949/hovercard" href="https://github.com/JuliaLang/julia/issues/8949">#8949</a></p>
<p dir="auto">With Julia 1.6, Artifacts.jl isre now a stdlib. However, it is not listed in the manual, <a href="https://docs.julialang.org/en/v1.7-dev/stdlib/Artifacts/" rel="nofollow">https://docs.julialang.org/en/v1.7-dev/stdlib/Artifacts/</a> gives a 404. IMHO there really should be something here, even if it's just a few lines that point elsewhere (e.g. to the Pkg.jl manual). Right now, searching the Julia manual for "artifacts" gives zero hits.</p>
<p dir="auto">So the de-facto canonical place for documentation on artifacts is still Pkg.jl, specifically <a href="https://julialang.github.io/Pkg.jl/dev/artifacts/" rel="nofollow">https://julialang.github.io/Pkg.jl/dev/artifacts/</a>. But that does not (yet?) reflect the fact that Artifacts are now a stdlib (perhaps deliberately, but I think at least a callout pointing out this change in Julia 1.6 would be nice.</p>
<p dir="auto">And then there is <code class="notranslate">LazyArtifacts.jl</code> about which I learned by pure chance a few days ago when I chanced upon a random conversation about it on Slack. The entire documentation for this seems to be an entry in <code class="notranslate">HISTORY.md</code>. While admittedly error messages kinda guide you to it when you need it, I think the documentation for artifacts should also mention this stdlib package.</p>