From: David Corbin Date: 2002-04-02T04:55:27+09:00 Subject: Re: String#begins?(s) Guy N. Hurst wrote: >Rich Kilmer wrote: > >>... >> >>>I'm not convinced we need the methods, but if we do, I think >>>#starts_with and #ends_with are good candidates for names. >>> >>> >>>Dave >>> >>My only reason for having them is if folks that are new to Ruby don't >>know RegExp syntax they may look to String for begin and end matching >>methods. Back to the Basic days, they had Left$, Right$ and Mid$. Not >>advocating the names, just the fact that folks have been using these >>types of methods for a long time. >> >>-Rich >> > >Thanks Rich, I was just thinking about Left$ right before I read your email ;-) > >And I think 'left' and 'right' make more sense than 'head' and 'tail' here. > I'm not vary multilingual, but I'm sure arabic/hebrew speaking programmers would get confused by left/right methods, and perhaps it doesn't make sense for langauages designed to be vertically written. > >Guy N. Hurst >