Hello all :wave: I don't want to spark a big discu...
# announcements
j
Hello all 👋 I don't want to spark a big discussion, and hopefully this is the right channel but I was wondering what the state of expression trees in Kotlin is. I see some messages stating that it's planned but I don't seen anything other than that. Anyone here has any idea?
p
What is an expression tree?
j
a
What are those expression trees good for?
p
seems pretty much like a tool to create DSLs and Kotlin already has extensive capabilities in that area
j
It's not for DSLs or anything. In C# you would use it to convert lambda statements into SQL queries (or any other query language for that matter)
So instead of
queryable.where("age").eq(10)
you would have
queryable.where(person => person.age == 10)
g
Andrey Breslav mentioned expression trees in Kotlin on one of conference, but as I know there is no proposal or ETA
j
Thanks for info! Too bad there is no official statement