As Keno says, you should use * for string concatenation in Julia, not + as in Python.
If you really, really want, you can "fix" it by adding a new method to +, but that might cause other problems, and I think that would be inadvisable if you want do distribute a package with your code. +(a::String, b::String) = a*b Ivar kl. 20:12:56 UTC+1 lørdag 18. januar 2014 skrev Keno Fischer følgende: > > String concat uses `*` rather than `+` > > > On Sat, Jan 18, 2014 at 2:04 PM, Sharmila Gopirajan Sivakumar < > [email protected] <javascript:>> wrote: > >> Hi, >> This is about some odd issues I'm experiencing with Julia. When I try >> to add 2 strings, >> >> url = "http://" + domain >> >> (Here domain is a variable whose value is read from the csv file using >> readtable.) >> >> I get the error "ERROR: no method +(ASCIIString, UTF8String)". But in >> julia's Base/strings.jl, there are promote rules to promote asciistring to >> utf8string. So why do we get this error? how do I fix it? I would be >> quite willing to fix it in Julia. >> >> Regards, >> Sharmila >> > >
