by chrisandchris · 6y ago · 0 comments
someList.Add(obj); someStr.Format(„%d“);
While the first one cleary modifies the list someList, the second one only _returns_ the modified string and someStr’s value does not change. IMHO fornatted text is a different (new) object therefore I don‘t see his issue, and I also think there‘s a shift towards immutable, which would clear such a thing up.
I don‘t see any semicolon missing.
To be honest, I have no idea what he's expecting with that "return true". How would that be different in any other language?