Any difference between t<'a> and 'a t in F#?

前端 未结 4 2145
挽巷
挽巷 2021-02-19 22:49

Is there any difference in meaning between t<\'a> and \'a t in F#? Can they be used interchangeably even after declaration?

4条回答
  •  轮回少年
    2021-02-19 23:08

    I would say the difference is readability. For one parameter the ' syntax isn't overly confusing but when you get a list of them it becomes much easier to read the angle bracket version.

提交回复
热议问题