[julia-users] Re: Get the red out!

2016-09-27 Thread Brian Rogoff
Thanks Simon, way better, way more Julian. -- Brian On Saturday, September 24, 2016 at 5:12:52 PM UTC-7, Simon Danisch wrote: > > How about something like this: > > function showtypetree(T, level=0) > println("\t" ^ level, T) > for t in subtypes(T) > (t != Any) && showtypetree(t,

[julia-users] Re: Get the red out!

2016-09-24 Thread Simon Danisch
How about something like this: function showtypetree(T, level=0) println("\t" ^ level, T) for t in subtypes(T) (t != Any) && showtypetree(t, level+1) end end This is still not type stable, since *_subtype *seems to use untyped sets: https://github.com/JuliaLang/julia/blob/m