The readme says the syntax for something like
enum Color {
Hsl(u8, u8, u8)
}
is
However, shouldn't it be this?
because it's supposed to be "tag"(data) and a bare sequence of values is not valid data in Eon.
Now, you might say that "Hsl"(0, 100, 200) is a special syntax for tuple-like enum variants, but
- Why does this in particular get a special syntax?
- Isn't
"Hsl"([0, 100, 200]) valid syntax anyway, meaning that there are two ways to express the same thing?
The readme says the syntax for something like
is
However, shouldn't it be this?
because it's supposed to be
"tag"(data)and a bare sequence of values is not valid data in Eon.Now, you might say that
"Hsl"(0, 100, 200)is a special syntax for tuple-like enum variants, but"Hsl"([0, 100, 200])valid syntax anyway, meaning that there are two ways to express the same thing?