Jamie Wilkinson wrote:
This one time, at band camp, O Plameras wrote:
Jamie Wilkinson wrote:
This one time, at band camp, O Plameras wrote:
Andre Pang wrote:
"foo" + 5
What about,
today + 1 = 14 Sept 2006 if today is 13 Sept 2006
or
time +1 = 5pm if time is 4pm
For me this is just fine. Makes coding easy and fast.
Unless you don't know that 1 unit is a day; or you wanted to add a second,
or a minute, or a year!
Are you being cynical or silly ?
We are talking 'overloading'. 'Overloading' is the interpreter's
ability to know
different meanings for the same 'term' or 'label' depending on the
context or
value of the variable. Is'nt this, also, the context of this thread,
namely, the
debate on the pitfalls and the power of 'overloading' ?
You've said "let's overload plus for time to mean we add a whole day".
Andre and myself have said "picking 'one day' for what adding an integer to
a time means is arbitraty and unobvious to anyone but the person who first
decided it."
Then ask, if unobvious; don't jump to conclusions.
Yes, you can overload plus to let you easily add integers to time types.
That's one reason why I'd overload, and that it'll make coding easy and
even enjoyable for me.
I'm strongly of the opinion that time types are not good types to overload
like this.
Value judging is a debate that never ends with no winners and/or losers.
I'll not engage
you in that.
But what I'm saying is I'm right in choosing my tools (overloading or
not) but it does not
mean Andre and yourself are wrong.
But it's also, unjustified to make value judgments (cynism or bad faith)
especially as to the character or
motives of programmers like Guido van Rossum when it's so negative.
Again, GvR is right and Andre is
'probably' right depending on the context of the problem being solved.
It's always bad to attempt to make yourself look good by making others
look bad.
This attitude seems to be prevalent.
This is one kind of cynism I'm talking about.
Why don't you just demonstrate you're good by presenting details of your
ideas
without saying others are bad (or lazy) because nobody can't prove one way
or another that this is so ?
GvR has made a name in the programming language history, whether you
like it or not.
I hope others who criticize GvR have made their name, too.
Cynical, yes; silly, no.
What you would want to be, probably, is 'Questioning, yes; Cynical, never'.
O Plameras
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders