From: Sean Russell Date: 2001-10-14T11:03:05+09:00 Subject: [ruby-talk:22502] Open-ended ranges Before I post an RCR on this, I'd like to solicit information from the more knowledgeable Ruby gurus. Occasionally, I encounter a situation where having an open-ended range would be nice... or, more accurately, a default MAX value. For instance, I'd sometimes like to say: (1..) # to infinity and beyond! ("a"..) # a-z "big string"[4..] # -> "string" Yeah, the last case only saves two characters, but you get the idea. First: 1) does anyone else think this would be useful? 2) would this complicate the Ruby interpreter/parser needlessly? Thanks. PS. I was following the "versioned require" discussion for a while, but it seems as if talk surrounding it has died out. Is anyone still working on this? I'd *really* like a standard way of saying: require "somemodule/someclass" (2.0..3.5) -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! Check out our new Unlimited Server. No Download or Time Limits! -----== Over 80,000 Newsgroups - 19 Different Servers! ==-----