Hello,
I have a patch [1] to permit anonymous functions to omit their argument
types. For example:
vec.iter(fn@(x) {...})
This works fine but it occurs to me it is unclear what to do with the
return type.
In particular, does `fn@(x) { ... }` return unit, or is the return type
inferred?
Also, it occurs to me that I ought to check whether there is any
objection to such a feature. I've never heard any objections, but I
haven't asked explicitly on the list. There is an open bug
(https://github.com/mozilla/rust/issues/2093).
Niko
[1] https://github.com/mozilla/rust/compare/6e5c8a7...1ba4ca4
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev