Re:The Shapes of Code
by makapuf on Tuesday January 28, 2020 @02:20AM
(#22167161)
Functions can be inlined by the compiler if it thinks it's an issue. I think it's rather a question of readability : sometimes if a process involves a long series of step I like to be able to read them linearly rather than jumping back and forth to sub steps. I can read just the headers if they're cleanly organized by cleanly separated paragraphs (with braces if needed to indicate separate scopes and no leaking variables between paragraphs).
[ Parent
| on HN ]
There are no comments on this comment yet.