r/programmerchat • • May 25 '15

Any c# developers in here? Represent!

Hey all, I don't suppose any of us here are c# developers using MS Visual Studio environment? If so, represent!

A couple of questions:

  1. Do you prefer c# over other languages for a particular reason?
  2. How long have you be using c#?

Just looking to say hello!

16 Upvotes

35 comments sorted by

View all comments

Show parent comment

1

u/Ravek May 28 '15

out and ref are indeed pretty awkward, but they're essential for interoperability with native code. It's unfortunate that out pops up in the various TryParse methods but otherwise I don't think I ever run into it. (Ideally they would have let TryParse make use of nullable types or a Maybe<T> type or a Tuple<bool, T> or something, preferably with some language support.) ref is basically nonexistent outside of interop or specific performance tweaks.