From: Daniel Schierbeck Date: 2005-10-22T22:52:00+09:00 Subject: Re: A comparison by example of keyword argument styles Yukihiro Matsumoto wrote: > Hi, > > In message "Re: A comparison by example of keyword argument styles" > on Fri, 21 Oct 2005 18:46:59 +0900, Daniel Schierbeck writes: > > |1) *Method definition* > | I think named arguments should have the same > | syntax as positional ones, just with a colon > | in front of it. > | > | def foo(a, b, :c, :d = "bar") > > Why with a colon in front of it instead of right after it? > > |2) *Method calling* > | I think matz' style is preferable in many cases, > | but i still think the :key = value syntax should > | be there. > > Why should be? > > matz. > > Because the keys *are* symbols, and they have colons in front of them. Cheers, Daniel