4 ms·
> out variables are there because people were used to coding like this This does not invalidate OP's point that it is terrible design. You do not need to take
by mercurial 10y ago
> out variables are there because people were used to coding like this
This does not invalidate OP's point that it is terrible design. You do not need to take every bad idea in older languages in the name of familiarity.
- olavk 10y agoI believe it is for interoperability with code in these languages, not just familiarity. That said, the BCL also use out parameters in a few places (the TryParse methods) which arguable set a bad precedent.