Sadly not. Have a look at https://github.com/JuliaLang/julia/issues/1090 and https://github.com/JuliaLang/julia/pull/10269
The complication in Julia is that with its multimethods, it is not so clear what the return type of a generic function actually means. On Tue, 2015-03-10 at 21:24, Shivkumar Chandrasekaran <[email protected]> wrote: > I am new to Julia, so forgive the elementary question, but I could not seem > to find the answer in the docs or by googling the news group. > > Is it possible to specify the return type of a function in Julia? > > Thanks. > > --shiv--
