News for hackers. Stuff that matters.
Re:An Intuition for Lisp Syntax by Koshkin on Thursday May 27, 2021 @07:31PM (#27309907)
To those who find "that all those brackets in Lisp were off-putting and weird", look no further than C++:

    [](){}
is valid syntax for a lambda. (I think in C++20 you can also stick in < > somewhere in between.)

Lisp's S-expressions are just acquired taste (like coffee of a particular blend).

Re:An Intuition for Lisp Syntax by owl57 on Friday May 28, 2021 @03:24AM (#27312613)
See? Lispers sneaked in, distracted everyone with all these lambdas and closures and put their brackets all over the place.
Re:An Intuition for Lisp Syntax by fishmaster on Friday May 28, 2021 @06:43AM (#27313796)
Open and shut case, Johnson!
Re:An Intuition for Lisp Syntax by kccqzy on Thursday May 27, 2021 @10:14PM (#27311017)
The following are all valid too:

    []{}
    []{}()
    [](){}()
Re:An Intuition for Lisp Syntax by opportune on Friday May 28, 2021 @01:28AM (#27312033)
Doesn’t look weird to me, that’s just an empty lambda. Pretty recognizable for anybody who works with lambdas, IMO - it’s just an empty capture with no parameters and no body. Not something you would ever see in real code unless doing something very weird.
Re:An Intuition for Lisp Syntax by owl57 on Friday May 28, 2021 @03:29AM (#27312650)
Strange in fact that we don't recall seeing this in real code. An empty callback smells a bit sloppy but not really weird.