Jamie Wilkinson wrote:
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.

This isn't a value judgement (unless this is a whimsical pun on the
overloading of the term 'value', in which case lol).  I'm trying very hard
to give you good evidence why *this particular case* of overloading is not a
good idea.

What I meant by 'value judgment' is one person says it's not good to do this, like what you said about 'today + 1' which translates to 'increment by 1 day'. I could have said
'today + 5' which means 5 days from today.

I've seen codes particularly in 'Ruby' that use this specific style of 'overloading'. So, obviously, the author of that 'Ruby' code made a judgement it's good idea
to do that.

So, who is 'right' and who is 'wrong' ?

There's no principle or 'absolute formula' to make a judgment. That's why it's
called 'value' judgment because it depends on one's value and values differ.


O Plameras
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders

Reply via email to