Closed as not planned
Description
First off, I know that proposals are closed, but i think a lot of project could benefits from that.
A minor addition: ononymous function literals, basically they're syntax sugar for struct { fn inner(...){...}}.inner
, as fn(...) {...}
, this could be super useful especially in callback-based APIs like GLFW, SDL (in some points) or other zig libraries (i don't have example ;( ).
I really hope this feature is added to zig since it's really annoying typing the whole struct thing or making a whole new function just for a simple callback.
Metadata
Metadata
Assignees
Labels
No labels