Open Its-Kenta opened 11 months ago
Should be fixed now.
I'm still uncertain if I like the optional semi-colons. It creates some problems (such as empty return statements or pointer dereferencing and also poses questions such as yours for coding standards).
As of right now, the "standard" I use is to omit them unless it breaks up an ambiguous parsing scenario.
If the standard is to omit, would it be better to make it standardised along all examples? Perhaps it's just me nitpicking, but it feels like users might get conflicted feelings about it.
Anyway thank you for looking into this!
Few issues I've found with the
README.md
example:main.lita:58:28 error: 'f64' can't be assigned to 'f32'
:By passing it as
1
and2
or addingf
at the end resolves this issue. However, it presents another:main.lita:38:5 error: symbol 'f' already defined in /Users/kenta/Programming/litac-t/src/main.lita:38 var f : f32 = 0.5_f32 // 32-bit float ^ *** symbol 'f' already defined in /Users/kenta/Programming/litac-t/src/main.lita:38
: Commenting outf
variable on line 38 and associated code with it fixes the issue.It would probably be a good idea to fix the issue and present potential users with a working example? I've also found out that usage of semi-colons is optional in LitaC, but in code examples it's a mix bag of using it or not. Is there a code standard with LitaC that has a stance on it?