On Feb 2, 2016 5:03 PM, "David Anthoff" <[email protected]> wrote:
>
> Hi,
>
>
>
> is there a method that I can pass a function f and a type signature to
and it returns the return type I can expect from calling f with the given
types? I.e. something like
>
>
>
> code_returntype(f, (Int64, Float64))

There's base.return_types but it's generally a bad idea to write code that
depends on type inference except for debugging and testing.

>
>
>
> and then it would return the type that f would return if called with an
Int64 and Float64. The return type could of course be a union of many types
if the function is not typestable.
>
>
>
> Thanks,
>
> David
>
>
>
> --
>
> David Anthoff
>
> University of California, Berkeley
>
>
>
> http://www.david-anthoff.com
>
>

Reply via email to