On Saturday, 12 December 2015 at 06:41:11 UTC, Shriramana Sharma wrote:

This AliasSeq contains expressions: 3, false, This should be: 1 + 2, "foo" == "goo"

Clearly, the AliasSeq is not able to store the expressions themselves since they are automatically evaluated at compile time. It stores only the values that the expressions evaluate to. Further, expressions which are not evaluable at compile time aren't permitted in the AliasSeq. (I tried it.) Thus the appropriate name would thus be isValuesSeq, no?

All values, 3 and false included, *are* expressions. They are expressions with one operand and no operator, but they are still expressions.

https://en.wikipedia.org/wiki/Value_(computer_science)

Reply via email to