From: itsme213 Date: 2005-01-14T03:11:14+09:00 Subject: Re: Duck Typing as Pattern Matching Completing that last posting ... "itsme213" wrote > A separate, but related, issue is that I _really_ think anywhere selectors > are passed around in 2.0 they should uniformly include information about > method arity, keyword arg names, and block params (at least optionally). If > 2.0 does selector namespaces, then selectors have to include namespace info > as well. > x.respond_to?(:x) where :x is in namespace-1 > x.respond_to?(x) is :x is in namespace-2. Thus respond_to?(x) could: - make x a namespace-aware selector, not just a symbol - return (also?) a MethodInfo object with arity, key-args, block When we register_method_missing_handlers Ruby can extract MethodInfo from the block.