4 ms·
Another project burdened by Andrew Kelley's weird hate-boner for function literals. (struct { fn run }).run How ridiculous that this is required to do som
by Defletter 1y ago
Another project burdened by Andrew Kelley's weird hate-boner for function literals.
(struct { fn run }).run
How ridiculous that this is required to do something so simple.
- ivanjermakov 1y agoRelated RFC for context: https://github.com/ziglang/zig/issues/20242 https://github.com/ziglang/zig/issues/20242
- habedi0 1y agoI think they want to add lambdas to Zig at some point. The number of changes is high between releases.
- Defletter 1y agoUnless something has changed from this (https://github.com/ziglang/zig/issues/1717#issuecomment-1627790251 https://github.com/ziglang/zig/issues/1717#issuecomment-1627...), that is unlikely. The irony is that Zig's new async/await strategy is to use event loops with passed-in functions (https://www.youtube.com/watch?v=x3hOiOcbgeA&t=3643s https://www.youtube.com/watch?v=x3hOiOcbgeA&t=3643s).