3 ms·
Bare 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 t
by Jweb_Guru 5y ago
Bare 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.