← Back to context

Comment by skydhash

6 hours ago

There’s place where you can break the code before 100 or even 80 line limit. And the only reason that you cannot do so with code is excessive indentation (nested scope). Which you will find easily in very long functions.

> Which you could just as well have right there where you read the block.

A function forces encapsulation and make explicit the external factors. A block doesn’t make clear which variables in the parent scope it’s using or if everything in the block is one logical step.