When is it OK to use an IORef?

前端 未结 4 730
我寻月下人不归
我寻月下人不归 2021-01-30 12:27

One thing that has always confused me is whether or not it\'s an okay time to use an IORef. Are there any guidelines that should be followed when deciding whether or not to use

4条回答
  •  醉话见心
    2021-01-30 13:17

    I use STRef when the state is localized and do not require interaction with the environment.

提交回复
热议问题