BSVino / JaiPrimer

A description of Jonathan Blow's programming language, Jai
1.81k stars 81 forks source link

Older syntax is not reflecting newer revisions #22

Open AlexBlandin opened 7 years ago

AlexBlandin commented 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.

BSVino commented 7 years ago

Pull requests welcome :)