On Wed, Jun 22, 2011 at 9:37 PM, Fabrizio Giudici < fabrizio.giud...@tidalwave.it> wrote:
> I would prefer to avoid adding two lines for declaring two fields (even > though I agree that it's important to shrink code in the body of methods, > less important in field declarations). I'm with Sam and I would like to see: > | > view.notifyFeedUnavailable(**notification().withCaption(R.** > string.unavailableNewsTitle) > .withText(R.string.** > unavailableNewsMessage));| > > Note that this would be slightly better than Android R - those plain int > constants need casts everywhere - it has been discussed here in past, and > Google's version is that plain integer constants allow faster code - > reasonable thinking of 2008, maybe not in 2011. In any case, it wouldn't be > reasonable in J2SE. > Wouldn't this just be a matter of reading properties files and generating a R.string entry for each property? > So, if somebody is going to do that, please use a special Key<T> object > which would avoid casts. > Why not just make it a string, if it's in R.string ? Moandji -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.