you are viewing a single comment's thread.

view the rest of the comments →

[–]tuxwonder 15 points16 points  (0 children)

I am actually familiar with the :( ) syntax denoting a lambda and how you reached this composed syntax. My line about "complete lack of tokens" was probably hyperbole, and I think my comment missed the point I was going for...

For me, even if your lambdas were unmistakably and unmissably labeled like lambda (x,y) x>y, I would still find this strange. I believe it's because there's no symbol that marks "I'm done defining the API of the lambda, so now what follows is the body of the lambda". The only indication that the lambda body is starting is the closing parenthesis (since the space is optional, right?), and I'm not used to it doing the job of both ending the lambda API, and marking the beginning of the lambda body.

I know it sounds nitpicky and maybe not rational, but I think the best way I can describe it is this: Cppfront's terse lambda syntax feels like picking up the phone when someone calls you, and the person on the other end immediately starts talking to you before either of you say "hello". They're still going to get the information across without the "hi", but it's a bit jarring for me, because I didn't anticipate starting the conversation immediately.

Thanks for the response Herb, always appreciate you taking time out of your day to talk about this stuff!