Is the example fail-safe? Also wouldn't this result in the same machine code in either case (i.e. the code's simply being written in a more condensed fashion?)
"Also wouldn't this result in the same machine code in either case"
Well yes. But Martin Fowler's recommendation in this case has nothing to do with the machine code optimization and everything with the readability of the actual code.
2 comments
[ 3.1 ms ] story [ 30.2 ms ] threadWell yes. But Martin Fowler's recommendation in this case has nothing to do with the machine code optimization and everything with the readability of the actual code.