Does using parentheses around return values provide any compiler-related benefits?

后端 未结 2 665
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 16:21

Was just watching a video of a rather great Microsoft instructor, Mike Taulty. In his videos he consistently surrounded his return values with parentheses, even single valu

2条回答
  •  悲哀的现实
    2020-12-20 16:53

    There's no benefit wrt the code generated. You can verify this by looking at the IL generated. As for whether it improves readability or not, that is subjective.

提交回复
热议问题