This question already has an answer here:
- Should we define types for everything? 10 answers
According to Jeff Bay's Essay on Object Callisthenics,
One of the practices is set to be "Wrap all primitives and Strings"
Can anyone elaborate on this ?
In languages where we already have wrappers for primitives like C# and Java. and In languages where Collections can have generics where you are sure of what type goes into the collection, do we need to wrap string's inside their own classes ?
Does it have any other advantage ?