Daniel Schierbeck wrote:
> I still haven't given up on my own style :)
> 
> def foo(:a, :b, :c = 3, **keys); end
> 
> # these should all be valid foo :a => 1, :b => 2   # current style 
> foo a: 1, b: 2         # matz' proposition foo :a = 1, :b = 2     #
> my style :D
snip
> 2)   *Method calling* I think matz' style is preferable in many
> cases, but i still think the :key = value syntax should be there.
> 
> h = Human.new "John Doe", :height = 178, :weight = 65  # metric ;) 
> car.drive to: LasVegas, :speed = 125
I can't say I can contribute much to the theoretical discussion. I can 
only say what my first impressions are (up until Brian's email I was a 
helpless spectator in an incomprehensible discussion).
The :a syntax looks a lot like symbols, which is something I would 
avoid, in order to avoid paragraphs in documentation explaining that "in 
method declarations :x means keyword", "when calling methods :a=x is a 
keyword parameter assignment while :a is a symbol parameter" etc.
Cheers,
V.-
-- 
http://www.braveworld.net/riva

____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.