|
|
|
|
|
by SkiFire13
141 days ago
|
|
Functional programming languages usually don't support linear/affine types, non-gc references and mutations. Their closures are essentially the equivalent of Rust's `Rc<dyn Fn(...) -> ...>` with some sugar for expressing the function type and hiding all the `.clone()`s needed. It's easy to get simplier results if you support less features and use cases. |
|