Am 30.06.2005 um 19:17 schrieb Mars Saxman:
On Jun 30, 2005, at 9:56 AM, Norman Palardy wrote:
is it primarily because date has a conversion to string and so
both signatures match ?
I can see how that would be ambiguous
the odd thing is that it does work if you do
"the beginning" + New Date.SQLDate() + "and the end"
so I dont understand why additional parens would make it ambiguous
It has nothing to do with conversions. All it takes is this:
foo(bar).baz
Does that mean "call foo, passing in bar, and call baz on the
result", or does it mean "evaluate bar, call baz on its result, and
call foo on its result?"
And that's why I do think that passing arguments without
( ... ) parens is in fact a very bad idea. I was never sure why,
but no I know... Moreover, I see very good reasons why all modern
languages a defined to pass arguments by (...) or [...] like in ObjC.
If RB would require the developer to use (..) for all parameters,
code would be more readable (obvious precedence rules) and parsing would
be simpler.
I hope this will change some time, but I know, that the rest of the
RB dev community won't like the idea. Too bad...
Kinds,
Stefan
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|