←back to thread

201 points olvy0 | 3 comments | | HN request time: 0.001s | source
Show context
high_na_euv ◴[] No.41878416[source]
LINQ is so fucking useful and well designed feature of .NET ecosystem that it is unreal when you gotta use lang which doesnt have such a thing.

C# design team is/was unparalleled

replies(7): >>41878459 #>>41878543 #>>41878588 #>>41878686 #>>41879163 #>>41879194 #>>41879315 #
pjmlp ◴[] No.41878459[source]
LINQ is largely based on FP stuff, also how Smalltalk collections work.

It is relatively easy to find similar capabilities in most languages nowadays, unless one is stuck on Go, C and similar.

replies(7): >>41878547 #>>41878579 #>>41878702 #>>41878783 #>>41878792 #>>41878816 #>>41879057 #
1. sanex ◴[] No.41878547[source]
Do you know an equivalent for Linw to EF in kotlin or Java because I have not found it.
replies(2): >>41878638 #>>41878713 #
2. stanac ◴[] No.41878638[source]
Those are linq expressions. They are indeed wonderful. You get an abstract tree from which you can create SQL or API commands to access the data source. I remember in the early days (.NET 3.5?) there were multiple examples of LINQ2X like Linq2Csv, Linq2Rss Linq2Drobox (I'm paraphrasing, I don't remember actual examples, but it was wild).

There is also relinq library which transforms linq expressions into expressions which are easier to understand/use.

3. pjmlp ◴[] No.41878713[source]
Rather quick search, as I am more of a myBatis person,

Java: https://www.jooq.org/

Kotlin: https://www.ktorm.org