Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Boring

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:

Make a statement with javac!
Make a statement with javac!
 
J2SE 1.4 breathes new life into the CORBA community, Part 3
J2SE 1.4 breathes new life into the CORBA community, Part 3
 
Develop state-of-the-art mobile games
Develop state-of-the-art mobile games
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.