On Fri, 2010-11-19 at 16:56 -0800, Ben Bangert wrote: > On Nov 19, 2010, at 4:12 PM, Chris McDonough wrote: > > > If there are both regexes and converters, I'd suggest they remain > > separate, e.g.: > > > > {month:\d+:month_conv} > > > > Regexes are about matching, converters are about converting. > > Since my month converter knows it wants digits, > I feel silly being unable to let it declare that and having to repeat that > over and over.
AFAICT, matching and conversion are totally separate concepts. Despite some conversions having a relationship with some matchings, there are times when you want a match filter without a conversion, and vice versa. And there are times when you don't want to stop to create a new converter just to make a matching assertion. If we consider conversion-marker-in the pattern a must-have (I don't think it is TBH, because we already have it via custom route predicates), whatever solution we come up with should take into account the case of someone just wanting to do an unanticipated matching (probably via a regex) without stopping to create a converter/matcher utility. - C -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.