https://kotlinlang.org logo
Title
l

Leandro Cavalheiro

11/10/2017, 12:04 PM
Good Morning people... Sorry by my very very bad English .. I'm Brazilian and new with kotlin... but go try ... I see many examples in the web and all of them uses 'VAL' for create properties ... Then I think: When update an registry ... how to make? If 'Val' is equivalent to 'Final' of the Java ...
r

radityagumay

11/10/2017, 1:30 PM
By default final or val is a thread safe. You you will expect no one can change the value after he created. In kotlin, you should use val as long as possible.
👍 1
And you don't need extract lock for that. Because of thread safe.
👍 1
t

theandrioli

11/13/2017, 3:46 PM
@Leandro Cavalheiro try #brazil
👍 1