From: Dean Wampler Date: 2007-10-27T06:49:16+09:00 Subject: Re: Fluent programming in Ruby ------=_Part_6688_14669529.1193435358429 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. > > ... > > Regards, Martin. > > > #-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University > #-#-# http://www.sw.it.aoyama.ac.jp mailto:duerst@it.aoyama.ac.jp Wow. A Japanese friend told me just this week that Japanese is inflected. Word order doesn't matter; each word has a suffix to indicate it's "role" in the sentence. Maybe he meant "partially inflected" or I missed that bit. dean -- Dean Wampler http://www.objectmentor.com http://www.aspectprogramming.com http://aquarium.rubyforge.org http://www.contract4j.org ------=_Part_6688_14669529.1193435358429 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 10/26/07, Martin Duerst <duerst@it.aoyama.ac.jp> 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.

...

Regards,    Martin.


#-#-#  Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-#   http://www.sw.it.aoyama.ac.jp       mailto:duerst@it.aoyama.ac.jp

Wow. A Japanese friend told me just this week that Japanese is inflected. Word order doesn't matter; each word has a suffix to indicate it's "role" in the sentence. Maybe he meant "partially inflected" or I missed that bit.

dean
--
Dean Wampler
http://www.objectmentor.com
http://www.aspectprogramming.com
http://aquarium.rubyforge.org
http://www.contract4j.org ------=_Part_6688_14669529.1193435358429--