Is Julia well-suited for string manipulation?

I don’t understand this sentence. Does this mean it needs or does not need to be implemented with @foo_char macro? I didn’t know there were such char macros, or is your point that there aren’t?

Would be breaking, since b'A' is currently parsed as b' * A'

2 Likes

Too bad. I never liked that Mathematica-ism anyway. But that ship is long gone.

2 Likes

This is one of my favorite things though:

julia> using ForwardDiff

julia> Base.adjoint(f::Function) = Base.Fix1(ForwardDiff.derivative, f)

julia> f(x) = x^2
f (generic function with 1 method)

julia> f'(1)
2

julia> f''(1)
2

julia> f'''(1)
0

type piracy schmiracy, Newton notation precedes Julia’s type system anyway

8 Likes

You could also try using Strs.jl, and the ASCIIStr/ASCIIChr types.
It is faster than any of your methods above, even the ones using codeunits().

4 Likes