I believe optimization is compiler's job. You should not rely on compiler for features, but I believe it is perfectly fine to rely on compiler for optimization. Otherwise write bytecode, or better yet machine codes.
-- fedor. ---- Best of all is never to have been born. Second best is to die soon. > -----Original Message----- > From: Scaringi, Stephen [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 25, 2002 1:45 PM > To: '[EMAIL PROTECTED]' > Subject: RE: [Eap-features] String --> StingBuffer --> String > > > Hmmm, that's a compiler implementation detail that you > probably don't want > to rely on. I'd really like to see this refactoring as well. > There's a nice > little article on the JDC about String concatenation performance: > http://developer.java.sun.com/developer/JDCTechTips/2002/tt030 > 5.html#tip1. > > -Stephen > > -----Original Message----- > From: Fedor Karpelevitch [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 25, 2002 12:07 PM > To: '[EMAIL PROTECTED]' > Subject: RE: [Eap-features] String --> StingBuffer --> String > > > compiler does it for you anyway, but code stays readable. So > why bother? > > -- > fedor. > > ---- > Newton's Fourth Law: Every action has an equal and opposite > satisfaction. > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 25, 2002 6:06 AM > > To: [EMAIL PROTECTED] > > Subject: [Eap-features] String --> StingBuffer --> String > > > > > > hi all > > > > a cool refactoring would be to be able to convert strings like: > > > > String str = "Hello world values: " + a ";" + b + ";" + c + > > "\n " + etc; > > > > > > to > > > > > > StringBuffer str = new StringBuffer(); > > str .append("Hello world values: ") > > .append(a) > > .append(";") > > .append(b) > > .append(";") > > .append(c) > > .append("\n ") > > .append(etc); > > > > > > And back the other way if needed! > > > > > > Florian Hehlen > > > > > > > > Visit our website at http://www.ubswarburg.com > > > > This message contains confidential information and is intended only > > for the individual named. If you are not the named addressee you > > should not disseminate, distribute or copy this e-mail. Please > > notify the sender immediately by e-mail if you have received this > > e-mail by mistake and delete this e-mail from your system. > > > > E-mail transmission cannot be guaranteed to be secure or error-free > > as information could be intercepted, corrupted, lost, destroyed, > > arrive late or incomplete, or contain viruses. The sender > therefore > > does not accept liability for any errors or omissions in > the contents > > of this message which arise as a result of e-mail transmission. If > > verification is required please request a hard-copy version. This > > message is provided for informational purposes and should not be > > construed as a solicitation or offer to buy or sell any > securities or > > related financial instruments. > > > > > > _______________________________________________ > > Eap-features mailing list > > [EMAIL PROTECTED] > > http://www.intellij.com/mailman/listinfo/eap-features > > > > _______________________________________________ > Eap-features mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-features > > _______________________________________________ > Eap-features mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-features > _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
