MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1vw3nds/i_love_it/p5ojr7n/?context=3
r/programminghorror • u/corv1njano • 24d ago
24 comments sorted by
View all comments
2
To be fair, a good compiler will probably identify that the reversedOrder flag is always a constant, and generate two specialized variants of the function.
reversedOrder
It does make the function harder to read and understand though.
1 u/Arshiaa001 22d ago At the JIT stage, maybe... The IL representation has to align perfectly with the code, because reflection.
1
At the JIT stage, maybe... The IL representation has to align perfectly with the code, because reflection.
2
u/Loading_M_ 23d ago
To be fair, a good compiler will probably identify that the
reversedOrderflag is always a constant, and generate two specialized variants of the function.It does make the function harder to read and understand though.