[LLVMdev] local lambdas: request for coding standard clarification/judgement call

Duncan Exon Smith
Tue, 15 Apr 2014 03:34:37 -0000

> On Apr 14, 2014, at 20:14, Sean Silva <chisophugis at gmail.com>
wrote:
>
> Do local lambdas get named like variables or like functions?
>
> E.g.
>
> void foo() {
>   auto helper = [](...){...};

It should be "help" here (verb), not "helper" (noun), but
this is the direction I like.  It's a local function!

>   // or
>   auto Helper = [](...){...};
> }
>
> My gut is that it should be lowercase (named like a function) since I got a
weird feeling in my stomach seeing an upper-case name being called like a
function in new code.
>
> -- Sean Silva
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev