I don't have a strong opinion on this so I'd say I'm +0 (I'll go with the flow).
Maybe I'd go with 2 because that's what I've used for years and http://chaoticjava.com/posts/the-hardly-known-messageformat/ seems to say it's "better". Thanks -Vincent On Sep 27, 2008, at 5:04 AM, Sergiu Dumitriu wrote: > Hi devs, > > I'd like to apply http://jira.xwiki.org/jira/browse/XWIKI-2667 , but > one > thing I'd like to change is the format of the log messages. The > current > patch uses String.format, but I prefer MessageFormat, as it is more > expressive, and it is already used by the localization tool. > > So: > 1. We use String.format, because: > - it is "simpler" (some say) > - it is familiar to C/C++ programmers > - it is a bit more customizable at the finer level > - the code is already written > > 2. We use MessageFormat, because: > - it is already used for localization strings > - it is more expressive (I really like the "choice" format) > - it is apparently less customizable, but it uses good defaults (I'd > rather specify that I want a "long" date format than a "DD MMMM > HH:mm:ss > z" format) > - the changes are minimal > - I for one prefer this syntax, rather than the old printf one. > > My +1 for option 2. > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

