https://kotlinlang.org logo
Title
f

Florian

10/28/2019, 8:27 AM
Is this underscore naming convention common in Kotlin?
m

marstran

10/28/2019, 8:28 AM
I've never seen it. To me, the missing val/var is enough to deduce that they are single use.
t

tddmonkey

10/28/2019, 8:28 AM
I’ve never seen it. It’s quite common in languages that don’t offer enforced visibility constraints though, e.g. JavaScript, Python
f

Florian

10/28/2019, 8:47 AM
thank you guys
e

elizarov

10/28/2019, 9:17 AM
d

dgreenhalgh

10/28/2019, 9:52 PM
Hey Florian, you’ll see in the next chapter that we move away from that convention pretty quickly, with the exception of properties with custom getters/setters. At the time of writing, we thought the community was going to coalesce around the pattern that Roman linked to, but it hasn’t been universal.
f

Florian

10/28/2019, 10:03 PM
thanks for the clarification
d

dgreenhalgh

10/28/2019, 10:07 PM
Thanks for reading 🙌