Article:
  Readable Java 1.5
Subject:   Interesting Ideas but...
Date:   2003-09-25 06:48:49
From:   anonymous2
...in the end I tend to agree with a previous poster.


I vastly prefer the currently proposed syntax in 1.5, especially for generics.


I found your style was a bit misleading for exactly some of the "casting-look" issues you mentioned. In short I'm happy with the angle brackets.


Also, I feel the new "for loop" is syntactic sugar and not really worth adding to the language. My main problems with for loops relate to the casting required for collections that don't support generics.


I can't really comment on the variance stuff so you may have point there.


Again, interesting article.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Interesting Ideas but...
    2003-10-02 08:29:04  anonymous2 [View]

    I tend to agree with the above. There's nothing wrong with a for loop. Our in house codeing standards will never let us use the new version anyway. What I really argree with though is that your casting like syntax is just plain confusing. I don't really feel that similar syntax should only be distingishable because of context. I don't want to have to ask myself what context something is in, I just want to say "Ah it's a cast"

    I don't have any real understanding of variance, but from the examples you showed and what I think is going on. I found the other way to be more straight forward. I like all of my modifiers to be in the same place so that I know where to look.