Documentation for views defines syntax as follows:
let v=() {print x=1, y=2};
If I simplify it to
let te = print x=1, y=2;
it will be a variable holding a tabular expression.
I found that I can use them interchangeably, expressions work pretty much like (not materialized) views.
let te = print x = rand(1000), y = 1;
let v=() {print x = rand(1000), y = 1};
te | join v on y | join te on y | join v on y
Is there any performance or other difference between the above options? If no, why do two variants of syntax exist?