Can I detect whether I've been given a new object as a parameter?

前端 未结 9 685
日久生厌
日久生厌 2021-01-18 01:31

Short Version

For those who don\'t have the time to read my reasoning for this question below:

Is there any way to enforce a policy of "new obje

9条回答
  •  忘掉有多难
    2021-01-18 02:23

    No. And if there is some reason that you need to do this, your code has improper architecture.

提交回复
热议问题