4 ms·
> "function-returning function which accepts a function as an argument" I write almost exclusively Go day to day and I've noticed I no longer shy away from fun
by kaib 16y ago
> "function-returning function which accepts a function as an argument"
I write almost exclusively Go day to day and I've noticed I no longer shy away from function pointers like in C. It's not that the C version can't be mastered, it's just that I'd rather not occupy a significant chunk of my brain with it.
Another interesting observation is that I can now pretty easily switch between C and Go if I need to, the declaration syntax seems different enough that my brain can do the leap. Sadly less true for semicolons (Go omits most, C doesn't)