News for hackers. Stuff that matters.
Re:Cap'n Web: a new RPC system for browsers and web servers by keyle on Monday September 22, 2025 @11:23PM (#45342501)
C#, Swift, Dart, Rust... Python. Many languages take lambda/predicate/closure as filter/where.

It generally unrolls as a `for loop` underneath, or in this case LINQ/SQL.

C# was innovative for doing it first in the scope of SQL. I remember the arrival of LINQ... Good times.

Re:Cap'n Web: a new RPC system for browsers and web servers by sobani on Tuesday September 23, 2025 @03:14AM (#45343784)
How many of those languages can take an expression instead of a lambda?

Func<..> is lambda that can only be invoked.

Expression<Func..>> is an AST of a lambda that can be transformed by your code/library.

Re:Cap'n Web: a new RPC system for browsers and web servers by Tyr42 on Tuesday September 23, 2025 @07:58AM (#45345731)
R let's you do that, and it gets used by the tidy verse libraries to do things like change the scope variables in the functions are looked up in.