Open AlexBlandin opened 7 years ago
I know it's all temporary, but it's a little annoying that the first example of function and struct declaration is wrong.
// A function that accepts 3 floats as parameters and returns a float sum := (x: float, y: float, z: float) -> float { return x + y + z; };
Vector3 := struct { x: float; y: float; z: float; };
It's been :: instead of := for these two for a while because they're "constants" to all but the compiler, which sets constants, so clearly is allowed to disrespect constants.
Pull requests welcome :)
I know it's all temporary, but it's a little annoying that the first example of function and struct declaration is wrong.
// A function that accepts 3 floats as parameters and returns a float sum := (x: float, y: float, z: float) -> float { return x + y + z; };
Vector3 := struct { x: float; y: float; z: float; };
It's been :: instead of := for these two for a while because they're "constants" to all but the compiler, which sets constants, so clearly is allowed to disrespect constants.