3 ms·
> Return by ref and out parameters: I'd be happy if they just removed them from the language. Ugly, error magnets. I disagree. Firstly, more high-performance n
by naasking 10y ago
> Return by ref and out parameters: I'd be happy if they just removed them from the language. Ugly, error magnets.
I disagree. Firstly, more high-performance non-allocating code can now be written safely instead of dropping down into unsafe languages.
Secondly, ref and out parameters are address types, which the CLR and C# need to properly handle to support value types/structs.