From: Evan Martin Date: 2002-07-18T05:55:25+09:00 Subject: Re: Syntax "surprise" Brad Cox wrote: > Didn't mention keywords because that's really the best tool for this > job, but unsupported in ruby. When that's fixed I'll withdraw my > objection. It's pretty near supported, though: (From my Evas-Ruby[1] docs:) text = evas.new_text( :x => 100, :y => 100, :fontname => "Verdana_Bold", :fontsize => 10, :text => "Evas test succeeded!" ) And in a hash you *can* use the extra comma. Tim Hunter wrote: > C allows a trailing comma in initializers: > > int foo[] = {1,2,3,}; And Ruby has the same style in initializers. But even C doesn't allow you to call functions like that: printf("hello %d", 23,); [1] http://neugierig.org/software/ruby/evas/evas.html