Because lambdas can be stateful, they are not simple functions. I see lambdas as a shorthand for writing out a functor.<br><div><br></div><div>I would write "Helper" because it is an object of the closure type while the function itself is "operator()".</div>
<br><div>On Mon Apr 14 2014 at 8:37:14 PM, Duncan Exon Smith <<a href="mailto:dexonsmith@apple.com">dexonsmith@apple.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> On Apr 14, 2014, at 20:14, Sean Silva <<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a>> wrote:<br>
><br>
> Do local lambdas get named like variables or like functions?<br>
><br>
> E.g.<br>
><br>
> void foo() {<br>
> auto helper = [](...){...};<br>
<br>
It should be "help" here (verb), not "helper" (noun), but this is the direction I like. It's a local function!<br>
<br>
> // or<br>
> auto Helper = [](...){...};<br>
> }<br>
><br>
> 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.<br>
><br>
> -- Sean Silva<br>
> ______________________________<u></u>_________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote>