4 ms·
Then is really nice. I always used to write "clean" pipelines in my gen server and such, that ended in an anon function to return the needed tuple for the resp
by paradox460 3y ago
Then is really nice.
I always used to write "clean" pipelines in my gen server and such, that ended in an anon function to return the needed tuple for the respective handlers. Inevitably we'd get a squabble in the code review, where some wanted everything put in a variable then the explicit tuple at the end, while others agreed that the dot syntax, while a bit odd and line-noisy, was ultimately better
Then solved that. The line noise complaints went away, code readability went up, and everyone was happy