On 8/25/12 12:36 PM, Patrick Walton wrote:
(a) Fix #1 above by making the type of a Rust function that closes
over nothing simply "&static/fn(...) -> ...".
For various reasons, this does not work [1]. My plan was just to remove
the "bare function" type entirely and instead say that a bare fn item
can be instantiated with any sigil. I should probably write that code
already and remove the bare function type for good. I've been waiting a
bit because (a) the existing &fn() type still needs some work and (b)
I'm hoping to let the design sit in my brain a bit more, particularly as
regards `once fn`.
Niko
[1] In short: Bare fns really ought to be assignable to @fn, ~fn, and
not just &fn.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev