Just documentation and readability of the functions themselves. For now I will just stick the return type in a comment (and hope I don't forget to change it if needed).
On Tuesday, March 10, 2015 at 3:20:42 PM UTC-7, Milan Bouchet-Valat wrote: > > Le mardi 10 mars 2015 à 15:12 -0700, Shivkumar Chandrasekaran a écrit : > > Thanks! I guess I will put the return type in the calling code > > instead. Nuisance though. > But you shouldn't need to. Julia is able to find out what the return > type is as long as you write type-stable code. Can you give more details > about what you're trying to achieve? > > > Regards > > > On Tuesday, March 10, 2015 at 2:39:37 PM UTC-7, Mauro wrote: > > 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 > > <00s...@gmail.com> 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-- > > > >