Re: Iterating over an array style question
On 11/24/2010 9:15 PM, Lew wrote:
[... concerning `weight[i]*a[--i]' ...]
Java programmers should be expected to know the language if they're
being paid to know the language. [...]
On occasion, Lew, you have scolded people for ignoring naming
and formatting conventions, the reason (sometimes stated, sometimes
implied) being that sticking with familiar conventions improves
readability. That is, you see value in following patterns beyond
those that the language itself enforces. I put it to you that
package FEDEX;import java.math.BigInteger;public class clown
{public static void main(String[]BigIntiger){System.out.
println(new String(new clown("Champagne Charlie"));}private
String JFrame;public clown(String Pattern){clown IOException
=this;IOException.JFrame=new String(Pattern);}public String
tostring(){return JFrame+" is my name!";}}
.... is perfectly legal Java, which "Java programmers should be expected
to know." Are we agreed?
However, I don't think you'd argue that a Java programmer should
be expected to *accept* such rot.
--
Eric Sosman
esosman@ieee-dot-org.invalid