S
Seamus MacRae
Eric said:Yes. `myString.length() == 0' gives an equivalent result
(because "" is the only String value with zero length), but is
more roundabout.
More roundabout to write, but perhaps less to execute, as it becomes
count == 0
rather than
(this == otherString) || (count == otherString.count &&
contentsEqual(otherString))
when the logic is expanded.