Implications of pure and constant functions
Posted Jun 10, 2008 21:31 UTC (Tue) by
nix (subscriber, #2304)
Parent article:
Implications of pure and constant functions
Good article.
Just one point. You say
[...] sometimes, doing the optimization "manually", directly in the source
code, makes it more readable, and makes the code resemble the output of
the compiler more.
I don't really see any advantage of making the code resemble the output of
the compiler. This seems more like a
disadvantage to me. (Also, the
output of the compiler necessarily differs between compiler versions and
targets, so any resemblance will be transient at best.)
(
Log in to post comments)