From: Robert Klemme Date: 2011-01-19T01:17:26+09:00 Subject: Re: What are your ruby rough cuts ? Most importantly: improve Ruby's usage of native threads, i.e. get rid of GIL. On Sat, Jan 15, 2011 at 9:36 AM, Brian Candler wrote: > * Regexp ^ and $ work match more than just start and end of string. For > example, /^abc$/ does not match only "abc" but also "rm -rf /*\nabc" That's why there are \A and \z (and also \Z). If you want to ensure match at string start or end use those. > * http://innig.net/software/ruby/closures-in-ruby.rb A bit of cleanup there would be nice but it doesn't really hurt me the way it is. > * class variables (@@foo), just try working out the semantics Yes, get rid of class variables! That's on position 2 of my list. > * The whole of ruby 1.9 String handling is arguably one huge paper cut. > http://github.com/candlerb/string19 Um, yes: it *is* tedious to use. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/