tag:blogger.com,1999:blog-1083890928935553699.post8514025184798701204..comments2023-04-02T08:51:54.059-04:00Comments on Rob's Musings: Concise Instance Creation Expressions (CICE)Robby O'Connorhttp://www.blogger.com/profile/10437521195914796737noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1083890928935553699.post-34543333666001420832008-03-25T09:01:00.000-04:002008-03-25T09:01:00.000-04:00If you want anonymous methods -- peek at the FCM p...If you want anonymous methods -- peek at the FCM proposal :) But yeh =)Robby O'Connorhttps://www.blogger.com/profile/10437521195914796737noreply@blogger.comtag:blogger.com,1999:blog-1083890928935553699.post-39362502040821066762008-03-25T08:10:00.000-04:002008-03-25T08:10:00.000-04:00Being concise is a fine goal but I believe that ne...Being concise is a fine goal but I believe that needs to be in harmony with what it "says", since language design is somewhere in the realm of communicating intent.<BR/><BR/>Java (so far) doesn't have any concept of inner methods, like Pascal did. That was my rub, however...<BR/><BR/>I must say that you made me doublethink my original objection. Maybe the idiom is worth having since FCM is going that way too.(blank)https://www.blogger.com/profile/16331243055724443792noreply@blogger.comtag:blogger.com,1999:blog-1083890928935553699.post-3329858545008421392008-03-25T00:23:00.000-04:002008-03-25T00:23:00.000-04:00If i understand CICE right -- the point it is to b...If i understand CICE right -- the point it is to be concise; and w/o the new keyword; it's straight-forward and concise. Why add this 'new'? Not sure why it rubs you wrong..Robby O'Connorhttps://www.blogger.com/profile/10437521195914796737noreply@blogger.comtag:blogger.com,1999:blog-1083890928935553699.post-5694921457587131962008-03-24T23:45:00.000-04:002008-03-24T23:45:00.000-04:00I've always been a fan of CICE, but the lack of th...I've always been a fan of CICE, but the lack of the "new" keyword always rubs me wrong. Basically, there is an invisible anonymous class hiding under the anonymous method. I think the intention is better expressed as:<BR/><BR/>button.addActionListener(new ActionListener(ActionEvent e){<BR/>... <BR/>});(blank)https://www.blogger.com/profile/16331243055724443792noreply@blogger.com