-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove stops-based *Function constructors #12258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! The DSL is pretty handy for these tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍 the dsl is such a satisfying cleanup
|
||
std::unique_ptr<Expression> eq(std::unique_ptr<Expression> lhs, | ||
std::unique_ptr<Expression> rhs) { | ||
return std::make_unique<Equals>(std::move(lhs), std::move(rhs), false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the other non-compound-expression-based DSL functions bypass type validation. Since the DSL now lowers the barrier to creating expressions directly, without parsing/validation, I think it's worthwhile to include some assert
s on the input expressions' types in the various expression constructors.
Remove stops-based
*Function
constructors. Another step towards #11247.