tag:blogger.com,1999:blog-4133036378510199203.post3573442452679935815..comments2023-11-03T08:59:47.410-07:00Comments on Dot Neverland: Java 7 "quick wins" some ideasjulian_zahttp://www.blogger.com/profile/08278483453087084978noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4133036378510199203.post-45208526051782516892008-07-10T15:25:00.000-07:002008-07-10T15:25:00.000-07:00`I wonder whichline.separator was used?runtime I h...`I wonder which<BR/>line.separator was used?<BR/>runtime I hope.`<BR/><BR/>String s = 'of course you<BR/>lose nice indentation<BR/>using these multi-line strings'<BR/><BR/>String s =<BR/>'but I suppose<BR/>you can format<BR/>it this way'Taldenhttps://www.blogger.com/profile/18057884338351662919noreply@blogger.comtag:blogger.com,1999:blog-4133036378510199203.post-1656479544466943362008-07-10T11:05:00.000-07:002008-07-10T11:05:00.000-07:00@Simon `No actually it's not hard at all`In fact...@Simon <BR/><BR/>`No actually <BR/> it's not <BR/> hard at all`<BR/><BR/>In fact I hacked the compiler to allow for multi-line strings. My only difference is that I used the ` symbol. In the end it was less code to allow for multi-line strings then for single line strings. I can't believe that this hasn't been implemented in the JDK.Anonymoushttps://www.blogger.com/profile/16791229566372038427noreply@blogger.comtag:blogger.com,1999:blog-4133036378510199203.post-54320029671030612922008-07-10T07:13:00.000-07:002008-07-10T07:13:00.000-07:00i'm into Groovy at the moment, i think it has all ...i'm into Groovy at the moment, i think it has all the features you are requesting. You should give it a try...Anonymoushttps://www.blogger.com/profile/11947635147199849444noreply@blogger.comtag:blogger.com,1999:blog-4133036378510199203.post-53310335533161487182008-07-10T05:58:00.000-07:002008-07-10T05:58:00.000-07:00Python style multiline string literals."""Isthatso...Python style multiline string literals.<BR/><BR/>"""Is<BR/>that<BR/>so<BR/>hard?"""<BR/><BR/>It would make outputting XML a lot easier at times.<BR/><BR/>--<BR/>SimonSimonhttps://www.blogger.com/profile/12805550798066257219noreply@blogger.comtag:blogger.com,1999:blog-4133036378510199203.post-61875064001071633412008-07-10T03:42:00.000-07:002008-07-10T03:42:00.000-07:00I think if there were short syntax for inner class...I think if there were short syntax for inner classes and the ability to write to variables, marked @Shared (latest BGGA spec.) or public (CICE), then there would be little point in closures.hlovatthttps://www.blogger.com/profile/07048859648718746436noreply@blogger.comtag:blogger.com,1999:blog-4133036378510199203.post-5707907568030811762008-07-09T13:01:00.000-07:002008-07-09T13:01:00.000-07:00I have a loooong list as well, but seeing as Sun i...I have a loooong list as well, but seeing as Sun is busy with the rubber duck that is JavaFX and closures are stealing all the limelight, I will just point out one realistic little humble corner I would like fixed.<BR/><BR/>Allow a catch block, even if no exception is thrown. One of the huge annoyances of checked exceptions is that if you comment out a call to something which throws a checked exception, you are also required to comment out each and every catch block. This is ridiculous, it should merely be an unreachable code warning.Casper Banghttps://www.blogger.com/profile/09493174484116672294noreply@blogger.com