Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Older syntax is not reflecting newer revisions #22

Open
AlexBlandin opened this issue Aug 27, 2017 · 1 comment
Open

Older syntax is not reflecting newer revisions #22

AlexBlandin opened this issue Aug 27, 2017 · 1 comment

Comments

@AlexBlandin
Copy link

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.

@BSVino
Copy link
Owner

BSVino commented Sep 8, 2017

Pull requests welcome :)

BSVino added a commit that referenced this issue Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants