3 ms·
What if my cranium is extra large? Do I get to write bigger functions?
by chewbacha 6y ago
What if my cranium is extra large? Do I get to write bigger functions?
- brobinson 6y agoPython's developers must have enormous heads if that's the case: https://github.com/python/cpython/blob/b8fde8b5418b75d2935d0ff93b20d45d5350f206/Python/ceval.c#L984-L4125 https://github.com/python/cpython/blob/b8fde8b5418b75d2935d0...
- cinntaile 6y agoIt's mostly a giant switch case for opcodes though, that's not really what is meant here.
- rightbyte 6y agoThey could have had inlined functions or macros if they would have wanted to keep the function lenght down for the table.
- rightbyte 6y agoGod I love reading code like that. Makes me feel better about the complex mess I produce thinking if it could be done in a clean way.
- AnimalMuppet 6y agoDon't write functions bigger than your co-workers' heads, either.