Re:New Features in C# 7.0
by Analemma_ on Thursday March 09, 2017 @08:13PM
(#13835484)
I think C#'s designers make it clear that they don't want you to use out parameters. They're a hack; they were only included at all to make it easier to communicate with C/C++ libraries. But now that they're there, they have to stay because of back-compat - Microsoft definitely does not want a Python 3 situation. They might as well make them as painless as possible for the people stuck with them because of some library. And at the same time, they should offer a compelling alternative to out parameters, which they have finally done with tuple returns.
[ Parent
| on HN ]
I mentioned this in another thread, but I wish they'd tell the Visual Studio Team not to use them, then - The SOAP and WCF tools will still happily generate code that requires out parameters.
People still use WCF? I suffered enough getting one project running with Windows Configuration Fuckup. Never again.
Re:New Features in C# 7.0
by ShinTakuya on Friday March 10, 2017 @03:46AM
(#13837234)
Some of us are stuck using them as part of legacy systems. We're eliminating them as we move to a newer stack but legacy code can be quite sticky.
Re:New Features in C# 7.0
by smoothdeveloper on Thursday March 09, 2017 @10:56PM
(#13836239)
How can they be considered a hack when they get baked in the BCL in so many places as well, not for interop purpose?