https://kotlinlang.org logo
#codereview
Title
# codereview
c

christophsturm

10/24/2020, 11:10 AM
in a api like this:
Copy code
data class User(
    val name: String,
    val birthday: LocalDate
)
Find<User>().where(User::name.like("blah%").and(User::birthday.between(date1, date2)))
can i somehow change it to make it possible to remove the
User::
part and rewrite it like
Copy code
Find<User>().where(::name.like("blah%").and(::birthday.between(date1, date2)))e
z

Zach Klippenstein (he/him) [MOD]

10/25/2020, 7:22 PM
You'd only be able to do that if this code has a
User
as a receiver - so for the API shape you're trying to get, I don't think so
c

christophsturm

10/27/2020, 1:33 PM
thanks, that makes sense.
7 Views