Join Slack
Am i going crazy or if you use a value class within a string template, it ends up using a toString o...
# server
k
Kev
06/06/2024, 12:40 PM
Am i going crazy or if you use a value class within a string template, it ends up using a toString of the value class and not the value within the class?
s
Sam
06/06/2024, 12:43 PM
You're right, this is by design. You can override the value class's
toString()
function if you want something different.
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by