From: Jim Weirich Date: 2009-02-26T05:18:56+09:00 Subject: [ruby-core:22499] Re: YASNP (Yet Another Selector Namespace Proposal) On Feb 25, 2009, at 1:23 PM, Yehuda Katz wrote: > You end up needing to do: > > Extlib > ::String > .constantize(Extlib::String.to_path(Extlib::String.underscore(str))) > > instead of: > > str.underscore.to_path.constantize > > Honestly, we tried this in DataMapper for a while, but it got too > bulky to > be realistic (outside of Java, I suppose). Plus this technique wouldn't allow polymorphic methods based on the target's type. That's a serious disadvantage. -- -- Jim Weirich -- jim.weirich@gmail.com