Skip to content

Instantly share code, notes, and snippets.

@jsundram
Created December 7, 2020 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsundram/2f6be23e78a3fce99e53acaef9405343 to your computer and use it in GitHub Desktop.
Save jsundram/2f6be23e78a3fce99e53acaef9405343 to your computer and use it in GitHub Desktop.
looking at julia's type hierarchy
function super(a)
local t
try
t = supertype(a)
catch
t = typeof(a)
end
if t == a
return
else
println(t)
return super(t)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment