[Nfd-dev] NFD CodeStyle rule 26

Junxiao Shi shijunxiao at email.arizona.edu
Tue Feb 25 23:34:52 PST 2014


Dear folks

Protocols should still use insert/delete because protocols are
language-neutral.

FIB/PIT/CS currently have insert/remove. They should be changed to
insert/erase.

Yours, Junxiao

On Tue, Feb 25, 2014 at 6:45 PM, Alex Afanasyev <afanasev at cs.ucla.edu>wrote:

> will this imply changing all the code and protocols?
>
> If so, I would rather prefer allowing insert/erase pair (as preferred).
>
> ---
> Alex
>
> On Feb 25, 2014, at 5:36 PM, Junxiao Shi <shijunxiao at email.arizona.edu>
> wrote:
>
> > Hi Alex
> >
> > Rule 26 states: Complement names must be used for complement operations
> > An example given is "insert/delete".
> > However, "delete" is a reserved word in C++, which cannot be used as an
> identifier.
> >
> > I suggest changing this to "insert/erase" to match STL style.
> >
> >
> > Yours, Junxiao
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20140226/26c0f3b5/attachment.html>


More information about the Nfd-dev mailing list