[LLVMdev] RFC: variable names

Chandler Carruth chandlerc at google.com
Mon Oct 13 17:29:17 PDT 2014

On Mon, Oct 13, 2014 at 5:25 PM, Jim Grosbach <grosbach at apple.com> wrote:

> This convention sounds like it would cause people to have to be constantly
> asking themselves "is this common enough to be an initialism-as-word or
> not?". The thing that started this conversation was someone complaining
> about going between codebases that they weren't sure whether to capitalize;
> now that person will have to get a feel for the local initialism-as-word's,
> which is a much greater burden than just the naming convention.
> Perhaps, but IMO, I think we’d get a long way with a “If you really have
> to stop and ask, it’s not common enough,” guideline.

Moreover, this seems like the easy stuff to sort out in code review. If you
aren't sure, it isn't common enough. if the reviewer then says "yes it is",
well, now you know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141013/2710c83f/attachment.html>

More information about the llvm-dev mailing list