regarding "I dont see how inline can help here": a...
# language-proposals
g
regarding "I dont see how inline can help here": assuming that
inline
represents an AST transform applied in the front-end of the kotlin compiler, then I would expect the code
Copy code
inline fun someMethod(arg: ImportantDomainThing) : Boolean {
  return arg.alpha > THRESHOLD || arg.x > 42.0
}

DBFacade.filter(lambda: CodeTree){
  this.where(generateWhereQuery(lambda))
}
then the query
Copy code
dbFacade.filter { someMethod(it.importantDomainThing) }
would be re-written by a near-front-end component to be:
Copy code
dbFacade.filter { it.importantDomainThing.run { it.alpha > THRESHOLD || it.x > 42.0 } }