[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] inconsistent synopsis for .MAILTO
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] inconsistent synopsis for .MAILTO |
Date: |
Fri, 04 Jan 2002 11:29:13 +0100 (CET) |
> > I like this, but how will you make the last syntax form work? My
> > suggestion is to have .LINK, .LINK-BEGIN and .LINK-END (or
> > something similar) -- it's very error-prone if .LINK can start and
> > end something at the same time.
>
> You just check the number of arguments. Two arguments starts and
> ends an anchor. One argument starts an anchor. No arguments ends
> an anchor. Or am I missing something?
With `work' I haven't meant the implementation itself but the
practical aspect of using it. I simply don't like to have identical
names for starting and ending tags.
> I'm not a big fan of overloading, but if its good enough for the
> groff source, e.g.:
>
> void *lookup(symbol s, void *v=0);
> void *lookup(const char *);
>
> then its good enough for the macros.
You can't compare that. Functions always have beginning and ending
tags, name `(' and `)'. Besides this, there is a compiler who checks
everything.
> In the case of the macros, I'd argue that the overloading is good
> because then people have to devote fewer brain cells to remembering
> more keywords and do less typing for something that they may need to
> use on a daily basis.
Overloading *might* work. More important is consistency -- if I have
a line-oriented macro foo, it's easy to remember that, say, <foo and
foo> start and end the block-oriented versions.
Werner
- [Groff] inconsistent synopsis for .MAILTO, Bernd Warken, 2002/01/02
- Re: [Groff] inconsistent synopsis for .MAILTO, Gaius Mulley, 2002/01/02
- Re: [Groff] inconsistent synopsis for .MAILTO, Tadziu Hoffmann, 2002/01/03
- Re: [Groff] inconsistent synopsis for .MAILTO, Rick Richardson, 2002/01/03
- Re: [Groff] inconsistent synopsis for .MAILTO, Werner LEMBERG, 2002/01/03
- Re: [Groff] inconsistent synopsis for .MAILTO, Rick Richardson, 2002/01/03
- Re: [Groff] inconsistent synopsis for .MAILTO,
Werner LEMBERG <=
- Re: [Groff] inconsistent synopsis for .MAILTO, Ralph Corderoy, 2002/01/04
- Re: [Groff] inconsistent synopsis for .MAILTO, Jon Snader, 2002/01/04
- Re: [Groff] inconsistent synopsis for .MAILTO, Ted Harding, 2002/01/06
- Re: [Groff] inconsistent synopsis for .MAILTO, Werner LEMBERG, 2002/01/07
Re: [Groff] inconsistent synopsis for .MAILTO, Gaius Mulley, 2002/01/03