Nooooooo T____T I was looking for it too today. Hope it gets added soon, fingers crossed!
On Thursday, August 14, 2014 10:31:17 AM UTC-4, John Myles White wrote: > > Not possible in the current versions of Julia. Maybe one day. There are > bunch of us who’d like to have this functionality, but it’s a non-trivial > addition of complexity to the compiler. > > — John > > On Aug 14, 2014, at 4:59 AM, Chris Kellendonk <[email protected] > <javascript:>> wrote: > > I'm new to the language so I may have missed something. But is there a way > to make sure a function passed as an argument is of a specific type > including it's arguments? It doesn't look like from the design of the > language this could be supported but I'm curious. > > For example I would like to be able to do: > > function callme(handler::Function(Int32, Float64)) > handler(12, 0.2) > end > > And the compiler would guarantee the correct type of function is called. > > Thanks, > > >
