groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick question: how to do .index in groff?


From: Denis M. Wilson
Subject: Re: Quick question: how to do .index in groff?
Date: Fri, 31 Jul 2020 14:42:19 +0100

On Fri, 31 Jul 2020 15:11:15 +0200
Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de> wrote:

> > If it DOES get implemented in Groff, please name it `.indexof`.
> > The name `.index` is so horribly misleading I'm almost tempted
> > to submit a PR just to rename it.  
> 
> Why not ".strpos"?
> 

or ".strstr" as in the C library?

My own view is not to make it a command, as I'm against code bloat, but
to write it as a macro. There are lots of useful string manipulation
functions that could be part of a strings package.


-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]