Join Slack
Powered by
what is the best way to implement a Singleton patt...
# android
l
landoulsi
08/30/2017, 11:18 AM
what is the best way to implement a Singleton pattern in Kotlin ?
stackoverflow
3
v
vyacheslav.gerasimov
08/30/2017, 11:23 AM
Looks like question for
#getting-started
s
stantronic
08/30/2017, 12:54 PM
I would think that would depend on what it was for. You can just use object if it doesn’t have constructor dependencies
k
kagomez
08/30/2017, 4:31 PM
is there a book or git where you can see the most patterns applied to kotlin? that would be fun to read
r
rook
08/30/2017, 6:09 PM
https://kotlinlang.org/docs/reference/object-declarations.html
3
Views
Open in Slack
Previous
Next