Hi, In message "Re: [ruby-core:32169] Re: Ruby 2.0 Wiki/Wish-list?" on Thu, 9 Sep 2010 03:50:46 +0900, Kurt Stephens <ks / kurtstephens.com> writes: |I'd like to implement: | |x // y # and x //= y | | => | |(tmp = x) != nil ? tmp : y Perl6 allows this, but it causes syntax conflict in Ruby in which // is an empty regular expression literal. |x&&.y&&.z # and x//.y//.z | | => | |(tmp = x) && (tmp = tmp.y) && tmp.z I am not sure x&&.y&&.z can be parsed without conflicts. I am afraid not. |A run-time configurable/replaceable lexer/parser, maybe something based |on OMeta. No, for the same reason we don't have (real) macros in Ruby. matz.