Why is assigning attributes to functions at run time frowned upon?

前端 未结 0 614
粉色の甜心
粉色の甜心 2021-02-14 14:35

For example, instead of decorating a function using closure, we can simply use monkey patching to give the wrapper function access to the original function, as shown below.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题