Type parameter display in 1.10 for MethodError

When Julia 1.10 throws an error, the type parameters in the stacktrace are abbreviated, and I absolutely love it. However, they are not abbreviated in the error message itself when it is a MethodError. Does anyone know the rationale?

I’m on 1.10.0-beta1, in case it has changed on master

2 Likes

A dirty error:

A clean stacktrace:

2 Likes

Does anyone know the rationale?

Yes: we only thought about the stacktraces and didn’t notice that it might need fixing elsewhere too :laughing:. It’s crucial to note that the fix was not a change in how types are printed (that’s viewed by many of us as something that should never drop information), it’s a change that’s restricted to how stacktraces are printed. But we should probably do it for MethodErrors too.

5 Likes