[pmwiki-users] Markup function bug or feature?

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 18 21:23:19 CDT 2005


On Fri, Aug 19, 2005 at 10:40:13AM +1200, John Rankin wrote:
> On Thursday, 18 August 2005 1:37 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> >> Markup('rulex','sequence1','pattern1','replacement1');
> >> 
> >> intervening code
> >> 
> >> Markup('rulex','sequence2','pattern2','replacement2');
> >> 
> >> As we know, pattern1 takes precedence over pattern2.
> >> 
> >> As I eventually discovered, sequence2 takes precedence over sequence1.
> >> 
> >> Is this a bug or a feature?
> >
> >Neither.  Either.  Both.  
> >
> >It's just an artifact of the current implementation; I didn't have
> >any examples handy to provide guidance as to what should happen,
> >so I just went with what seemed to make the implementation
> >easiest.
> 
> Fair enough. If it's easy, perhaps sequence1 ought to take
> priority over sequence2, for consistency. But if it's more than
> 10 seconds' work, forget it. I have fully recovered from my
> 'why the **** isn't this working?' experience :-)

After having a day to think about it I'm pretty sure consistency
should win here, even if it's more than 10 seconds' work.  But if
it's more than ten minutes, I'm letting it go.  :-)

Pm




More information about the pmwiki-users mailing list