News for hackers. Stuff that matters.
Re:Be wary of functions which take several parameters of the... by gnud on Friday September 27, 2019 @08:27AM (#21091112)
Ah, the reason is simple: C# allows named parameters, but do not enforce them. You can call File.Copy both as

    File.Copy(a,b)
and

    File.Copy(sourceFileName: a, destFileName: b)
And confusingly, also as

    File.Copy(destFileName: b, sourceFileName: a)
Re:Be wary of functions which take several parameters of the... by Lio on Friday September 27, 2019 @10:51AM (#21092623)
OK I see. That explains it and also gives a very concrete reason for using the chained API. Thanks.