> Ahh, context:global seems to be what I wanted. Where is that documented?
For me it is the default when I go to https://sourcegraph.com/search but there's documentation at https://sourcegraph.com/docs/code-search/working/search_contexts > Thanks! I'll rename it to elementsof(). Rather than renaming it, I'd say that the name chosen in the proposed text is a placeholder, and have a section in the prose that describes different naming choices, pros and cons, suggests a name from you as the author, but asks WG14 to pick the final name. I know Jens mentioned he doesn’t like the name `elementsof` and I suspect if we ask five more people we'll get about seven more opinions on what the name could/should be. 😝 ~Aaron -----Original Message----- From: Alejandro Colomar <[email protected]> Sent: Wednesday, August 14, 2024 10:00 AM To: Ballman, Aaron <[email protected]> Cc: Jens Gustedt <[email protected]>; Xavier Del Campo Romero <[email protected]>; Gcc Patches <[email protected]>; Daniel Plakosh <[email protected]>; Martin Uecker <[email protected]>; Joseph Myers <[email protected]>; Gabriel Ravier <[email protected]>; Jakub Jelinek <[email protected]>; Kees Cook <[email protected]>; Qing Zhao <[email protected]>; David Brown <[email protected]>; Florian Weimer <[email protected]>; Andreas Schwab <[email protected]>; Timm Baeder <[email protected]>; A. Jiang <[email protected]>; Eugene Zelenko <[email protected]> Subject: Re: v2.1 Draft for a lengthof paper Hi Aaron, On Wed, Aug 14, 2024 at 01:21:18PM GMT, Ballman, Aaron wrote: > > What regex did you use for searching? > > I went cheap and easy rather than trying to narrow down: > https://sourcegraph.com/search?q=context:global+lang:C+lengthof&patter > nType=regexp&sm=0 Ahh, context:global seems to be what I wanted. Where is that documented? > > I was thinking of renaming the proposal to elementsof(), to avoid confusion > > between length of an array and length of a string. Would you mind checking > > if elementsof() is ok? > > From what I was seeing, it looks to be used more uniformly as a > function-like macro accepting a single argument. Thanks! I'll rename it to elementsof(). Cheers, Alex > ~Aaron -- <https://www.alejandro-colomar.es/>
