Thanks. It is good to know that.

On Wednesday, April 29, 2015 at 12:31:38 PM UTC-7, Mauro wrote:
>
> That issue https://github.com/JuliaLang/julia/issues/1090 is still open, 
> thus the feature does not exist yet.  A bit further along is it with 
> anonymous functions https://github.com/JuliaLang/julia/pull/10269.  The 
> problem is that with multi-functions it is not that clear how to 
> implement return types.  But for me this is in also the biggest missing 
> feature (sadly I don't know the internals well enough to actually 
> contribute to solving it...) 
>
> Related, have a look at Base.return_types. 
>
> On Wed, 2015-04-29 at 20:54, Ryan Li <[email protected] <javascript:>> 
> wrote: 
> > Hi, 
> > 
> > As been mentioned in https://github.com/JuliaLang/julia/issues/1090, 
> the 
> > return type of a function can be specified. 
> > 
> > First of all, I found this is not available in the current released 
> version. 
> > 
> > Also I have another question related to this. If we can specify the 
> return 
> > type of a function, could we also specify the return type of this 
> function 
> > when it is used as input argument of another function? For example, 
> > 
> > function myfun1(x::Int, y::Int)::Int 
> > return x+y 
> > end 
> > 
> > function myfun2(func(::Int,::Int)::Int,x::Int,y::Int,z::Int) 
> > return func(x,y)+z 
> > end 
> > 
> > 
> > Best, 
> > Yingzhou 
>
>

Reply via email to