https://kotlinlang.org logo
Title
j

Jordy Langen

01/13/2018, 10:34 AM
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

poohbar

01/13/2018, 1:59 PM
What is an expression tree?
j

Jordy Langen

01/13/2018, 2:01 PM
a

Andreas Sinz

01/13/2018, 7:28 PM
What are those expression trees good for?
p

poohbar

01/13/2018, 8:20 PM
seems pretty much like a tool to create DSLs and Kotlin already has extensive capabilities in that area
j

Jordy Langen

01/13/2018, 8:47 PM
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

gildor

01/14/2018, 6:09 AM
Andrey Breslav mentioned expression trees in Kotlin on one of conference, but as I know there is no proposal or ETA
j

Jordy Langen

01/14/2018, 1:45 PM
Thanks for info! Too bad there is no official statement