From: Daniel Berger Date: 2007-10-27T08:19:33+09:00 Subject: Re: Fluent programming in Ruby Dean Wampler wrote: > > > On 10/26/07, *Martin Duerst* > wrote: > > At 14:01 07/10/26, David Flanagan wrote: > > >With this change, code like this works: > > > >puts "hello" > > .upcase > > .reverse > > .slice(0) # => prints "O" > > This looks great. It seems to confirm my feeling that part > of the reason for such method chaining is some similarity with > Japanese grammar, where the verb comes at the end of a sentence, > and a subsentence (with a verb at the end) can be followed by > further verbs, or a verb can be modified by further verbs. If I wanted a programming language that was built on the philosophy that it should mimic the grammar of a spoken language, I'd use Perl 6. Or Cobol. Dan