[removed] inline functions vs predefined functions

前端 未结 13 1938
心在旅途
心在旅途 2020-12-02 11:00

Can any body throw me some arguments for using inline functions against passing predefined function name to some handler.

I.e. which is better:

13条回答
  •  误落风尘
    2020-12-02 11:42

    In the example provided, the declaration and use of the function are so close that I think the only difference is readability. I prefer the second example.

提交回复
热议问题