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

Mixed and lower case Constant names are allowed. #254

Closed
metaprem opened this issue Jun 15, 2019 · 2 comments
Closed

Mixed and lower case Constant names are allowed. #254

metaprem opened this issue Jun 15, 2019 · 2 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@metaprem
Copy link

metaprem commented Jun 15, 2019

Documentation says "Constant names must be capitalized."
This code with mixed/lower case constant names runs in playground.
version 0.0.10 ( though v playground does not show lang version )
`
const (
A = 1
B = 2
S = 'upper S'
SSsSS = 'upper with lower'
S_many = 'upper S_many'
s = 'lower s'
s1 = 'lower s1'
)

fn main() {
println('A = $A')
println('B = $B')
println('S = $S')
println('SSsSS = $SSsSS')
println('S_many = $S_many')
println('s = $s')
println('s1 = $s1')
}
`

@medvednikov
Copy link
Member

V playground shows the version before you run anything. I'll make it more visible.

Fixed, const capitalization is now enforced.

@metaprem
Copy link
Author

metaprem commented Jun 18, 2019

Mixed case constant names are allowed

Don't know how to reopen a closed issue so submitting a new one

@medvednikov medvednikov added the Bug This tag is applied to issues which reports bugs. label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants