Created
June 2, 2011 20:02
-
-
Save oscarryz/1005174 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compare: | |
"This is the %d time we talk about %s ".%( 2, "dinner" ) | |
To: | |
String.format("This is the %d time we talk about %s ", 2, "dinner"); | |
The former is more OO ( imho of course ) | |
While: | |
"This is the %d time we talk about %s ".format( 2, "dinner" ) | |
Says it wrong: "format 2 and dinner" ... but to what? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment