There can be reasons where a special read-only `Ones` array type is 
beneficial: http://stackoverflow.com/a/30968709/176071.  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