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/
can someone help explain the usage of
fun
outside of alib
declaration to me?
I think the fun
usage outside libs is very limited, fun
doesn't support overloading and only support basic types, I think it is more like a C function, thinking on shared libraries or similar stuff.
*{Int32, Int32}
(from https://github.com/crystal-lang/crystal/issues/5037#issuecomment-332381702)
def bla(*arg : *{Int32, Int32})