From: Pit Capitain Date: 2005-01-14T20:45:14+09:00 Subject: Re: Duck Typing and automated Conversions Robert Klemme schrieb: > > def silly_example(str.to_str, count.to_int) > # str and count are converted like in the example above > s = "" > count.times { s << str } > s > end > > Basically this is just a way to save typing. Error reporting will be the > same. RDoc could evaluate this info and generate comments for this > automagically. > > Of course, any method could be invoked like this, maybe even with > parameters. I haven't thouroughly thought about implications of that fact > yet. > > Thoughs? Interesting idea. I think it's very readable. Regards, Pit