You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: