Thu, 6 Jan 2011 18:15:17 +0100
Uwe Lueck writes:
> I wrote:
> > A better proposal than using different category codes is
> > programming macros with optional arguments obeying
> > a convention that makes a choice of delimiters available to users.
> > Any macro package replacing \@ifnextchar[ by some
> > \ifx\let@token\opt@arg@delim could be run this way.
> > If no LaTeXY will adopt this, I will call it LüTeX :-)
> I had thought of posting such a "feature request" earlier,
> refrained from it for not having found a good idea how
> to implement it. If I now found it so simple, I must have
> overlooked a problem ...
> Maybe this already is in xparse? Sorry, I cannot afford more right now ...
xparse offer a fairly general snytax including variable delimiters and default
values per argument and more. Perhaps you should *indeed* have a look at it
one day :-) and it could be easily used on top of 2e if so desired
what is not offered right now is mandatory arguments with arbitrary delimiters
on the left or right, though one could achieve even those in an emergency
using "u" argument type twice (I guess)