Brendan Weinstein
06/17/2020, 5:18 PMval Strings.empty by lazy { "" }
and using Strings.empty
where ever an empty string is needed in code (eg val a = b ?: Strings.empty
)?Shawn
06/17/2020, 5:28 PMShawn
06/17/2020, 5:28 PMBrendan Weinstein
06/17/2020, 5:30 PMShawn
06/17/2020, 5:32 PMShawn
06/17/2020, 5:32 PMlazy
invocation is actually hampering the compiler’s ability to just inline the value where neededShawn
06/17/2020, 5:33 PMconst val
instead of anything fancyShawn
06/17/2020, 5:34 PMshikasd
06/17/2020, 6:14 PM