Join Slack
Powered by
If i have a class with a companion object and insi...
# getting-started
y
youssef
02/02/2024, 7:40 PM
If i have a class with a companion object and inside that class i got mutable compose state can i use that state every where in my code?
c
Chris Lee
02/02/2024, 8:12 PM
Yes, but having state in a companion object (or any static/global state) is a code smell.
Open in Slack
Previous
Next