Re: passing a Factory to a method to create a generic instance
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---910079544-585101952-1211480336=:10241
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT
On Wed, 21 May 2008, Arne Vajh?j wrote:
Tom Anderson wrote:
On Tue, 20 May 2008, Arne Vajh?j wrote:
Tom Anderson wrote:
The combination of default parameters and keyword arguments is a simple,
clean and convenient way of managing complicated argument lists. Examples
from python - subprocess.Popen:
PS: It would of course have to be something else than = to not break
existing code that passes a boolean expression.
Arne, please don't tell me you're confusing = and ==!
I am babbling nonsense. == would be a boolean expression. = is an
assignment. It is of course the assignment that is a problem.
int i = 0;
m(i = 2);
is legal Java and if m was declared as m(int i) the above syntax would
require one to memorize the (future) JLS to know what the code does.
Balls. I'd forgotten that assignments were expressions in java. IMHO, they
shouldn't be!
You're right, it would have to be : or something. It could even just be a
space, actually, but that would look weird. Colons:
input = new CsvReader(myfile, dialect: "excel", skipinitialspace: true) ;
Spaces:
input = new CsvReader(myfile, dialect "excel", skipinitialspace true) ;
tom
--
They didn't have any answers - they just wanted weed and entitlement.
---910079544-585101952-1211480336=:10241--