The Java 1.5 proposal offers programmers a false choice between desirable new features and readability. In fact, all of the proposed new features for 1.5 can be represented by clear, unambiguous, and readable constructs without breaking backwards compati
Tutorial Details:
The collection-iterating syntax is more compact, but the use of a colon to indicate foreach semantics is cryptic. (Is it supposed to resemble a squashed equals sign? The ale must have flowed like water when they came up with that!) There is a belief at Sun that foreach is so commonly used (it is a keyword in Perl, VBScript, Ruby, PHP, and Tcl) that adding a foreach keyword now would break a lot of code that uses it as a method or variable name. This is a strong argument, and I won\'t question it, since I am proposing a backwards-compatible syntax, but that doesn\'t mean that all other options are exhausted and we should resort to punctuation.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Boring
View Tutorial: Boring
Related
Tutorials:
|