In a language where both are available, would you prefer to see an instance constructor or a static method that returns an instance?
For example, if you're creating a String
from a char[]
:
String.FromCharacters(chars);
new String(chars);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…