Join Slack
Powered by
I think the expectation is that your data class sh...
# getting-started
k
kevinmost
09/23/2017, 10:13 PM
I think the expectation is that your data class should just be a holder for values without any logic, even at init-time. Because if you do
MyType("foo") == MyType("Foo")
, you'd expect that to evaluate to false, but if you make the strings all automatically converted to uppercase, that'll be true
4
Views
Open in Slack
Previous
Next