Skip to content

Instantly share code, notes, and snippets.

@bararchy
Created January 8, 2017 18: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 bararchy/3517c0388de124154c23aec28eb57f1d to your computer and use it in GitHub Desktop.
Save bararchy/3517c0388de124154c23aec28eb57f1d to your computer and use it in GitHub Desktop.
overloads in crystal
def foo(bar : String)
puts "#{bar} is a string"
end
def foo(bar : Int32)
puts "#{bar} is an Int"
end
etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment