From: Andrea Maschio Date: 2007-08-04T07:23:53+09:00 Subject: Re: Dynamic method call ------=_Part_29668_8990002.1186179751359 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, probably i started this post not imaging it would be difficult to imagine a syntax mixed and merged from 2 language, but since most of you people aren't speaking english as a first language, i think it would be easy to imagine that for a tester(not a developer, but someone who will use my 'scripting language' built wrapping watir facilities) would be nicer and easier to understand something like se_presente_testo("inserimento effettuato", "registra('testUseCase123', 'completo')) than if presente_testo then blabla or blabla if presente _testo That was not he point, which was how to implement a dynamic call to a method. The grammar stuff probably at beginning was just a subtilety, but it slighty began to make me understand some underlying language mechanisms that i believe are as powerful as easier compared to other language's features. So thanks a lot for the time to discuss about this, i really like this list and i find it is truly live and active as a Ruby community should be! :) 2007/8/3, dblack@rubypal.com : > > Hi -- > > On Wed, 1 Aug 2007, Andrea Maschio wrote: > > > Thank you very much guys, it worked. I was doing this for the purpose of > > create a scripting language in my lang for testers to easy developing of > use > > case testing with watir. > > For english people is probably easier to read > > Maybe, maybe not.... I would tend to say: > > if 5 is greater than 3 > > rather than > > if this condition is true: 5 is greater than 3 > > But of course it depends on the wider context you're developing. > > > David > > -- > * Books: > RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) > RUBY FOR RAILS (http://www.manning.com/black) > * Ruby/Rails training > & consulting: Ruby Power and Light, LLC (http://www.rubypal.com) > > -- Andrea Maschio http://www.superandrew.it A clever person solves a problem. A wise person avoids it. Einstein ------=_Part_29668_8990002.1186179751359--