While I understand that transpose
is recursive, the fact that it fails on strings (together with the beautiful '
notation) is a problem for beginners.
I would vote for a less pure solution that stops the recursion for AbstractString
and just work (or maybe better make the recursion of transpose
optional in Julia 2.0) rather than the current arcane error message it gives.
My two cents as the idiot user :-/
EDIT: I now also understand the difference between “linear algebra” and “container-like” operations… still I think that this is an example of stuff that make the Julia language learning curve steeper than what should be…