From: Daniel DeLorme Date: 2008-02-19T13:50:35+09:00 Subject: Re: Ruby M17N meeting summary Martin Duerst wrote: > This is a rough translation of the Japanese meeting summary > (see [ruby-dev:33825]) by NARUSE, Yui. Thank you very much, these are interesting news to hear about. > == String#gsub(regexp, hash) > Proposal to allow the following syntax: > String#gsub(regexp, {"ä"=>"\u00C4", ..}) > -> accepted This is very nice; I've often had to use a pattern roughly like string.gsub(/#{hash.keys.join("|")}/){ h[$&] } But shouldn't the syntax be more like this? String#gsub({"ä"=>"\u00C4", ..}) I can't really see a use case for keeping the regex separate from the hash... what happens in a case like this? "abc".gsub(/a/,{}) "a" gets deleted? > == String#getbyte, String#setbyte > -> accepted Great! Will this method take/return integers or 1-byte-long strings? > == Introducing require_relative > Proposal to add require_relative, require'ing a file relative to the > file where it is used. > -> accepted This is great news too. -- Daniel