LINQ-to-SQL works in C # because of the "magic" compiler, which allows you to use the same syntax for expression trees and anonymous functions. If users are IQueryable here users.Where(u => u.UserId == 1) , then the compiler will create an expression tree and ultimately pass it to the query generator. How is similar functionality implemented in Scala where there is no such help from the compiler?
source share