<@U4ZLF55U3> typically, we use Egyptian curly brac...
# getting-started
m
@annyce typically, we use Egyptian curly braces, like in Java, not in C. A question to developers of Kotlin. Should constants be
const val
or not?
s
Should, constants marked
const
inlines at use-site as Javac does (It should be done in kotlinc now, but not sure, anyway you should mark constants as
const
)
a
Do you find it's distracting to have the braces on their own line?
m
@semoro thank you. One person on a meetup said that
const
is only for annotations, and it’s a best-practice from JB to use it only there. I was quite disappointed...
@annyce it looks unusual for me, I write in Java and Kotlin. I think it looks okay for C/C++ developers.
2
a
ok
s
a
Great, done! Please let me know if you catch anything else.
👍 2