Why are 'out' parameters in .NET a bad idea?

后端 未结 22 2844
余生分开走
余生分开走 2020-12-25 10:54

Why are \'out\' parameters in .NET a bad idea?

I was recently asked this, but I had no real answer besides it\'s simply unnecessarily complicating an application. Wh

22条回答
  •  庸人自扰
    2020-12-25 11:17

    Some languages outside of .NET use them as do-nothing macros that simply give the programmer information about how the parameters are being used in the function.

提交回复
热议问题