Re: The .trans method and Least Surprise

2012-07-20 Thread Carl Mäsak
yary (): Speaking as a non-p6-coder proposal sounds good to me though the spec raises some other questions. The tr/// quote-like operator now also has a method form called trans(). Its argument is a list of pairs. You can use anything that produces a pair list: $str.trans(

The .trans method and Least Surprise

2012-07-13 Thread Carl Mäsak
Something's bothering me about the .trans method. This email lists a proposal to split its semantics into two methods. I'm not yet convinced myself about this proposal. It's quite late in the game to make spec changes of established methods, and the change will break some downstream application

Re: The .trans method and Least Surprise

2012-07-13 Thread yary
Speaking as a non-p6-coder proposal sounds good to me though the spec raises some other questions. The tr/// quote-like operator now also has a method form called trans(). Its argument is a list of pairs. You can use anything that produces a pair list: $str.trans( %mapping.pairs ); Does