Re:John Carmack on Inlined Code
by eru on Friday September 26, 2014 @08:49PM
(#8375639)
What non-negligible costs are you talking about?
[ Parent
| on HN ]
The ones Karmack talks about. Several "concepts"(functions in this case) with implicit relationships (like what calls what, and in what order) are (sometimes) more difficult to process for a human brain than a huge block of sequential code.
Oh, ok. Thanks. I guess that's why we try to avoid unnecessary naming in Haskell, and if we can, just chain our functions like eg
bigFunction = someFunction callBack . otherFunction arg1 callBack2The ones Karmack talks about. Several "concepts"(functions in this case) with implicit relationships (like what calls what, and in what order) are (sometimes) more difficult to absorve than a huge block of sequential code.