[Gd-hackers] gtk interface: shorten identifiers, ... ?
Mike Austin
mike_ekim at yahoo.com
Tue Dec 5 07:28:53 CET 2006
Bruce Hoult wrote:
> On 12/4/06, Chris Page <chris at chris-page.org> wrote:
>> As it happens, I'd rather lose this feature of Dylan and make it so
>> that window.foo(1, 2, 3) is equivalent to foo(window, 1, 2, 3), which
>> I think would be much more useful and widely applicable (no pun
>> intended).
>
> I guess you could still write (window.foo)(1,2,3) if that's what you wanted.
>
> That would be ok, as long as window.foo still meant foo(window).
> Which isn't terribly consistent, syntactically, as window.foo() would
> mean the same thing. But I've seen worse.
But in this case "foo" is still a global binding, and will require the same
number of required arguments as the generic function. What I was getting at
was being able to write functions with the same name with different number of
required arguments.
Mike
More information about the hackers
mailing list