4 ms·
Go did have closure support, where you can assign functions to normal variables and move them around, just like any other primitive data type. While variables
by nilsocket 8y ago
Go did have closure support, where you can assign functions to normal variables and move them around, just like any other primitive data type.
While variables which were declared prior to it in its outer function were available to its inner functions.
- deckarep 8y agoYes, I believe both Rust and for sure Go support closures that can capture enclosing scoped variables. Unless there is an obvious example of where this breaks down in Go and Rust, I’d certainly like to know how.
- NegativeLatency 8y agoNot directly related, but maybe the lack of genetics in go was a dealbreaker? Also I inagine the qt bindings are better in D.