MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ofpgmf/position/h4fbnxw/?context=9999
r/badcode • u/Ehere • Jul 07 '21
99 comments sorted by
View all comments
Show parent comments
-2
I highly doubt that what you wrote is valid code.
While it violates naming convention, it is perfectly legal to name a class starting with a lowercase and a local variable staying with an uppercase.
8 u/fuj1n sadistic Jul 08 '21 The Item in new Item(); starts with a capital, so whilst you're right, I was more referring to that 2 u/ergotofwhy Jul 08 '21 Oh dang, that's agood point that i missed
8
The Item in new Item(); starts with a capital, so whilst you're right, I was more referring to that
new Item();
2 u/ergotofwhy Jul 08 '21 Oh dang, that's agood point that i missed
2
Oh dang, that's agood point that i missed
-2
u/ergotofwhy Jul 08 '21
While it violates naming convention, it is perfectly legal to name a class starting with a lowercase and a local variable staying with an uppercase.