Hacker News new | past | comments | ask | show | jobs | submit login

The "return function as result" is being worked on: https://github.com/rust-lang/rfcs/pull/1305



Technically it already works, but you have to either return an actual function, or return a boxed closure (because trait object)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: