When FunN is parsed without an argument the result is a simple expression, this should be lifted directly and not subject to most of the rest of the higher order logic:
aggregate expressions should be possible to define in user functions
lambda for drop-in's should ideally throw - there is no lambda (not sure on how to verify this)
callfun should still work
lambda for non drop-ins should be possible to just replace
This would allow user functions to just substitute out expression trees like snippets without lambdafunction and aggregatefunction clashes or analysis issues when subbing out plain lambdas for plain expressions.
closing as it's not possible directly, possibly with an optimiser rule to sub it out as only at time of bind do you know it's an attribute reference, when it's no longer substitutable in the builder
When FunN is parsed without an argument the result is a simple expression, this should be lifted directly and not subject to most of the rest of the higher order logic:
This would allow user functions to just substitute out expression trees like snippets without lambdafunction and aggregatefunction clashes or analysis issues when subbing out plain lambdas for plain expressions.