News for hackers. Stuff that matters.
Re:Be wary of functions which take several parameters of the... by GordonS on Friday September 27, 2019 @06:23PM (#21096795)
You can get something like your last example in c#:

```c# var source = new FileSystemFile("source"); source.CopyTo("target"); ```

Of course, this isn't the only way to do it; you get the usual footguns as described in the article too.

Also apologies if the formatting is crappy - on mobile, and TBH not sure what markdown-like syntax HN supports, despite being a long-time user!

There are no comments on this comment yet.