News for hackers. Stuff that matters.
Re:What I learned in 2017 writing Go by jeremiep on Wednesday January 03, 2018 @05:16PM (#16065799)
That's not always true, the best cases for inlining one-use functions is when you don't introduce new local variables.

I've seen 1k LoCs functions that were incredibly easy to understand, and 10 liners that were complete gibberish messes.

I do however agree that declaring new variables every 10 lines over hundreds of lines would be hell to follow.

There are no comments on this comment yet.