[julia-users] Re: what do you do with strings in julia

2015-01-13 Thread Evan Pu
I'll try. the call chain is rather large and I'll see if I can get it down to a few constructs. On Tuesday, January 13, 2015 at 4:34:39 PM UTC-5, Steven G. Johnson wrote: > > > > On Tuesday, January 13, 2015 at 4:10:54 PM UTC-5, Evan Pu wrote: >> >> Steven, >> The error is actually an issue with

[julia-users] Re: what do you do with strings in julia

2015-01-13 Thread Steven G. Johnson
On Tuesday, January 13, 2015 at 4:10:54 PM UTC-5, Evan Pu wrote: > > Steven, > The error is actually an issue with LightTable's Juno plugin and actually > has nothing to do with Julia. > >> Can you file an issue at: https://github.com/one-more-minute/Jewel.jl explaining how the error arose

[julia-users] Re: what do you do with strings in julia

2015-01-13 Thread Evan Pu
Steven, The error is actually an issue with LightTable's Juno plugin and actually has nothing to do with Julia. I think what happened is in reporting the errors the plugin makes some mistake and ended up reporting another error(or itself had some misuse of strings) instead. The actual error was

[julia-users] Re: what do you do with strings in julia

2015-01-13 Thread Steven G. Johnson
Though we could define such a conversion method with: convert{T<:AbstractString}(::Type{SubString{T}}, s::AbstractString) = let s′ = T(s); SubString(s′, 1, endof(s′)); end Evan, what is your application here? What are you trying to do?

[julia-users] Re: what do you do with strings in julia

2015-01-13 Thread Steven G. Johnson
On Tuesday, January 13, 2015 at 2:50:34 PM UTC-5, Evan Pu wrote: > > what is the convention? I kept getting > `convert` has no method matching convert(::Type{SubString(UTF8String)}}, > ::ASCIIString) > all the time, every time > What are you doing that triggers this error? I'm guessing that you