From: Charlie Date: 2006-06-12T21:12:26+09:00 Subject: Re: Substrings by Position. Robert Klemme wrote: > 2006/6/11, Charlie : >> > >> > What version are you on? >> >> 1.8.4 >> >> You have probably missed out something, its foo[-3,2] = "" not >> foo[-3,2] > > Right. But with assignment I would find it even more irritating to > have reversal - because the only thing that would make sense is to > apply the reversal to the assigned string - and this is extremely > unobvious. > >> I just thought that if the current behaviour is so useful, then it'll >> be equally useful to have an equal and opposite behaviour. It's just >> unnatural that things can only go one direction. Just a thought. > > I don't subscribe to this general statement. Program code also flows > only one direction and it would be more than unnatural to have it both > ways. > > Kind regards > > robert Thanks for your comments. I think you all got the gist of the idea, so I needn't argue more. Personally, I think it has great potential for genome sequencing and genetic algorithm to name a few. -- Posted via http://www.ruby-forum.com/.