everyone knows if there is a variable declaration ...
# announcements
m
everyone knows if there is a variable declaration standard for kotlin ?
🥔 1
m
What do you mean?
m
hi bro
if exist a document
like standard declaration of variable
s
Are you maybe asking for a style guide?
Could you give an example of what, precisely, you’re looking for?
m
This is how you define a variable in Kotlin:
Copy code
var myVariable = someValue
But usually you want to use
val
, because you can't mutate it:
Copy code
val myValue = someValue
m
document standart of declaration variable
k
You keep repeating the same thing ...
Can you try to word what you want differently?
m
standard
💩 3
🧌 5
t
What is the variable definition that you think is not standard?
Is it about variable naming?
yes, Kotlin has some naming rule : Names of functions, properties and local variables start with a lower case letter and use camel humps and no underscores
👍 1