[rust-dev] returning functions in rust

Gábor Lehel glaebhoerl at gmail.com
Sat Jan 11 06:03:09 PST 2014


On Fri, Jan 10, 2014 at 8:01 PM, Daniel Micay <danielmicay at gmail.com> wrote:

> On Fri, Jan 10, 2014 at 1:57 PM, Patrick Walton <pwalton at mozilla.com>
> wrote:
> > It doesn't exist, outside of traits. Unboxed closures will probably make
> it
> > possible to express once again though.
> >
> > Patrick
>
> The tricky part is the need to infer the return type if it's defined
> inside the function since it's different per-closure.
>

I wrote up a small proposal for a feature that could help with this:

https://github.com/mozilla/rust/issues/11455



> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140111/f2ebd7d7/attachment.html>


More information about the Rust-dev mailing list