The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
Int8#+(UInt64)
, as an extreme example.
Proc(String, Int32)
e.g. if it accepts a string an returns an int32
abstract struct Callable
end
struct Proc1 < Callable
def call # define args/return type
end
end
struct Proc2 < Callable
def call # define args/return type
end
end
hash = Hash(String, Callable).new