From: Ville Vainio Date: 2004-04-02T04:54:21+09:00 Subject: Re: deciding between ruby and python >>>>> "Hal" == Hal Fulton writes: Hal> I'd have thought t.split.join(' ') would better exemplify Hal> both OO and FP. ' '.join(sequence) tends to get some bad rep, but I think it's more OO of the two. After all, general sequences should not have an operation of "join elements with strings", because it doesn't make sense for e.g. a sequence of sockets, while for a string it's reasonable to provide an operation that joins a sequence of string with itself (because it can expect the sequence to be that of strings). That is, string can know about sequences, but a sequence, being a more general data type, should not know about strings. As far as FP goes, allowing t.split w/o () is extremely non-FP, because you lose first class functions. And FP without first class functions is, well, Java. -- Ville Vainio http://tinyurl.com/2prnb