6 ms·
C# does that too. It's called LINQ and it's very popular.
by trailfox 13y ago
C# does that too. It's called LINQ and it's very popular.
- nimbix 13y agoAre there a number of slightly different and incomplete variants of LINQ, like there are SQL DSLs in Scala? Because if not, then LINQ is "the right way" of doing this kind of thing. And if I remember correctly, LINQ is also useful outside of the DB domain, for things like filtering arrays and so forth. I once read an article about how Java programmers can hold a conversation on the topic of upsides and downsides of multiple dependency injection containers while C# programmers only have one available and have nothing to say on this topic. That article concluded that having one "good enough" solution can often be better than having multiple slightly different and incomplete ones, even if each has its own strenghts, and I'd say the same is true when it comes to the C# LINQ vs. Scala SQL DSLs.
- trailfox 13y agoC# has various options (see: http://stackoverflow.com/questions/671231/linq-nhibernate-alternatives-equivalents http://stackoverflow.com/questions/671231/linq-nhibernate-al...) The Scala equivalent is called Slick, and it's the only SQL DSL that approaching anything near widespread use. I fail to see how incomplete projects on GitHub which happen to be written in Scala are relevent to this discussion.
- dennisgorelik 13y agoIt's NOT called LINQ in C#. You are probably referring to "LINQ to SQL" which is different and significantly less popular technology than LINQ.
- AKarimi 13y agoOr "LINQ to EF" which you can suppose it stable just when working with "MS SQL Server".