[PATCH] A new ADT: StringRefNulTerminated

Dmitri Gribenko gribozavr at gmail.com
Sat Feb 23 15:36:06 PST 2013


On Sun, Feb 24, 2013 at 1:03 AM, Krzysztof Parzyszek
<kparzysz at codeaurora.org> wrote:
> On 2/20/2013 3:40 PM, Dmitri Gribenko wrote:
>> About the name: I am not really attached to this name, but I could
>> only think of two good names:  CStringRef and StringRefNulTerminated.
>> "CStringRef" is a bit ambigous (is it a typedef for "const char*"?!),
>> and has only a single character difference from "StringRef", so I
>> decided to err on the side of verbosity.
>
> StringRefNT? :)

I see the smiley, but anyway: 'NT' abbreviation is not commonly
connected with nul-terminatedness, so I don't think this name is
intuitive.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the llvm-commits mailing list