Remix.run Logo
Defletter 5 days 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 4 days ago | parent [-]

Related RFC for context: https://github.com/ziglang/zig/issues/20242

habedi0 4 days ago | parent [-]

I think they want to add lambdas to Zig at some point. The number of changes is high between releases.

Defletter 4 days ago | parent [-]

Unless something has changed from this (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).

habedi0 4 days ago | parent [-]

That's kinda weird and sad. Lambdas are very useful TBH.

Defletter 4 days ago | parent [-]

Wouldn't surprise me whatsoever if someone creates zigplus, which is just some TypeScript-style superset that adds lambdas and interfaces to Zig as syntax sugar.