3 ms·
This looks a lot like LINQ. C# is probably one of those "less dynamic languages" but has had this for years. It powers a lot of ORMs and other frameworks that n
by vyrotek 13y ago
This looks a lot like LINQ. C# is probably one of those "less dynamic languages" but has had this for years. It powers a lot of ORMs and other frameworks that need a queryable expression language. It supports writing custom 'providers' so that you can write LINQ against almost anything.
http://msdn.microsoft.com/en-us/library/bb397933.aspx http://msdn.microsoft.com/en-us/library/bb397933.aspx
- mfenniak 13y agoI'm the author of a .NET RethinkDB client (https://github.com/mfenniak/rethinkdb-net https://github.com/mfenniak/rethinkdb-net), and I can add that RethinkDB's lambda functions were very easy to implement in .NET by using C#'s expression tree feature (http://msdn.microsoft.com/en-us/library/bb397951.aspx http://msdn.microsoft.com/en-us/library/bb397951.aspx). With that feature, a lambda can automatically be converted to an AST by creating a function that takes an Expression<Func<...>> parameter, which can easily be traversed and converted into RethinkDB's expression tree. Expression trees were introduced at the same time as LINQ, to support LINQ.