FYI  this discussion is in relation to Julia 0.4.  Initially I had some 
deprecation warnings but they have mostly gone away. I have no real 
objection,  perhaps it's just a little weird that the repl  returns
julia> x
linspace(0.0,10.0,50)

as opposed to printing it out like a full array. Perhaps that would be a 
nice addition.


On Wednesday, September 30, 2015 at 3:27:02 PM UTC-4, Matt Bauman wrote:
>
> There can be reasons where a special read-only `Ones` array type is 
> beneficial: http://stackoverflow.com/a/30968709/176071 
> <http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fa%2F30968709%2F176071&sa=D&sntz=1&usg=AFQjCNHZdDKf9W0sE5puj4PEJDSmHV4uOQ>.
>  
>  It's just five lines of code, and Julia/LLVM is able to optimize it such 
> that multiplication is totally elided.  It's pretty cool.  But as others 
> said, these functions are fairly well entrenched in creating mutable 
> arrays.  The output from linspace, however, isn't typically mutated.
>
> Back to linspace, I'm still curious to hear more reasons for the strong 
> dislike.  Is it because of how it behaves?  Or how it performs?  Or how 
> it's displayed (which is also valid)?
>

Reply via email to