Clarify why we need int constants for expression types.

Change-Id: I053fc5d32c118dbdb204dc8193337f981aff796e
This commit is contained in:
Julius Volz 2014-12-25 00:45:30 +01:00
parent 47551b8eee
commit 2ade9d40cf
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ type groupedAggregation struct {
// ExprType is an enum for the rule language expression types.
type ExprType int
// Possible language expression types.
// Possible language expression types. We define these as integer constants
// because sometimes we need to pass around just the type without an object of
// that type.
const (
SCALAR ExprType = iota
VECTOR