3 ms·
Pretty funny to read the arguments about how enums are the one true way and here we see function pointers are already supported.
by jayd16 5y ago
Pretty funny to read the arguments about how enums are the one true way and here we see function pointers are already supported.
- Jweb_Guru 5y agoBare function pointers are, but not state-capturing ones (see my other comment for why that is). Without state capture, closures really aren't more ergonomic to use than enums in most cases, and are often less so.