Smallville7123
04/18/2019, 1:52 PMval A = StringBuilder(string = "")
val B = StringBuilder(content = "")
what is the difference between string
and content
, like do both do the exact same thing?tddmonkey
04/18/2019, 1:56 PMShawn
04/18/2019, 1:57 PMcontent
paramtddmonkey
04/18/2019, 1:58 PMcontent
and string
Shawn A
04/18/2019, 1:59 PMSmallville7123
04/18/2019, 2:00 PMval A = StringBuilder(string = "")
val B = StringBuilder(content = "")
Shawn
04/18/2019, 2:00 PMcontent
that’s on Common, thoughStringBuilder(content: String)
is just a JS thing it looks likeStringBuilder(content: CharSequence)
StringBuilder(string: String)
for everyone elseShawn A
04/18/2019, 2:02 PMjs
stuff in the docs.Shawn
04/18/2019, 2:03 PMSmallville7123
04/18/2019, 2:03 PMShawn
04/18/2019, 2:03 PMSmallville7123
04/18/2019, 2:03 PMShawn
04/18/2019, 2:06 PMString
, string
content
is a fine, more generic nameSmallville7123
04/18/2019, 2:07 PMcontent
lolShawn
04/18/2019, 2:08 PMstr
, string
is a natural extension of thatSmallville7123
04/18/2019, 2:08 PMShawn
04/18/2019, 2:09 PMcontent
param makes it noticeable that that constructor takes in not String, but instead anything that implements CharSequenceSmallville7123
04/18/2019, 2:09 PMensureCapacity
doShawn
04/18/2019, 2:09 PMSmallville7123
04/18/2019, 2:10 PMShawn
04/18/2019, 2:12 PMSmallville7123
04/18/2019, 2:13 PMkarelpeeters
04/18/2019, 3:22 PM