NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Cheat! (Score:1)
When writing Java, remember it is not flexible. You, as the programmer, should be one to show flexibility. Then, cheat. For example, if you have control on the generated iterator, make a class which implements Iterator and Iterable. Delegate or inherit the methods of Iterator and do
Prety stupid, but it may work. For Enumerations, you'll have to write an adapter from enumerations to iterations (if you can't find one in the forest of classes available in the JDK). Of course, all of this has much more code that any of us would want to write, but it is hard to escape from that usually.
Reply to This
Re: (Score:2)
When writing Java, remember it is not flexible.
Don't worry; I've never forgotten this. :)
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers