You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some Text implementations like TextOf override toString(), while others, like JoinedText, don't. This behaviour is confusing, as sometimes invoking toString on a Text instance gives you a nice text representation, and sometimes you get the default one from Object. We should make it consistent.
I would prefer it if all of them overrode toString, because getting an actual text representation is what I would expect from a toString invoked on a Text instance. Also, it would be more convenient than asString because I wouldn't need to wrap it in UncheckedText. However, keep in mind that debugging becomes more difficult in case there are bugs in the Text implementations themselves, because the debuggers will usually invoke toString on watched objects to display their value on breakpoints. So I guess this is for ARC to decide, @llorllale
The text was updated successfully, but these errors were encountered:
Some
Text
implementations likeTextOf
overridetoString()
, while others, likeJoinedText
, don't. This behaviour is confusing, as sometimes invokingtoString
on aText
instance gives you a nice text representation, and sometimes you get the default one fromObject
. We should make it consistent.I would prefer it if all of them overrode
toString
, because getting an actual text representation is what I would expect from atoString
invoked on aText
instance. Also, it would be more convenient thanasString
because I wouldn't need to wrap it inUncheckedText
. However, keep in mind that debugging becomes more difficult in case there are bugs in theText
implementations themselves, because the debuggers will usually invoketoString
on watched objects to display their value on breakpoints. So I guess this is for ARC to decide, @llorllaleThe text was updated successfully, but these errors were encountered: