Re:“ZLinq”, a Zero-Allocation LINQ Library for .NET
by sherburt3 on Tuesday May 20, 2025 @08:35PM
(#44047277)
I feel like pretty much every language with generics has a LINQ, like functools/itertools in Python, lodash for javascript. It’s just a different expression of the same ideas.
[ Parent
| on HN ]
Re:“ZLinq”, a Zero-Allocation LINQ Library for .NET
by jeswin on Tuesday May 20, 2025 @08:57PM
(#44047362)
Nope, very different. Depending on whether the expression is on an Enumerable or a Queryable, the compiler generates an anonymous function or an AST. That is, you can get "code as data" as in say Lisp; and allows expressions to be converted to say SQL based on the backend.