For some interesting reading, here are some previous discussions on the topic of string concatenation:
https://groups.google.com/d/msg/julia-dev/43N5oYSHWdc/zPVmEVDZ5MwJ https://groups.google.com/d/topic/julia-dev/4K6S7tWnuEs/discussion https://github.com/JuliaLang/julia/issues/2301 https://groups.google.com/d/topic/julia-users/nQg_d_n0t1Q/discussion Cheers, Kevin On Mon, Apr 27, 2015 at 8:09 AM, Scott Jones <[email protected]> wrote: > > > On Monday, April 27, 2015 at 11:01:06 AM UTC-4, Yuuki Soho wrote: >> >> On Monday, April 27, 2015 at 4:21:11 PM UTC+2, Kevin Squire wrote: >>> >>> Just a note, Matlab-style [a b] concatenation has been deprecated in >>> Julia v0.4 >>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FJuliaLang%2Fjulia%2Fpull%2F7998&sa=D&sntz=1&usg=AFQjCNHmqjCKqnOsfMc-5YrBN-fIFYYxmQ>. >>> See the linked issues for details. The main issue is that this >>> functionality makes it challenging to create arrays of arrays (or arrays of >>> ranges), which are less useful in Matlab, but quite useful for general >>> programming. >>> >> >> As I understand it, only [a, b] is deprecated, with [a b] and [a; b] >> still being valid horizontal and vertical concatenation. >> >> I find a bit inconsistent that [a b] means something different when a and >> b are string as opposed to arrays, but maybe that rest upon the wrong idea >> that string are array-like objects. >> > > Why is it a wrong idea that strings array-like objects? > If you need to use mutable strings (which is most cases for what I'm > doing), you need to treat strings as vectors. > > Scott >
