Having a public recipient and a private setter with the same name is prohibited in TypeScript, as has already been discussed in various issues here on SO.
My main programming language is C #, where it's great. I also find this a useful construct, and to be honest, I really don't see what might be the problem with resolving this in TypeScript.
Why does TypeScript prohibit this? This question does not concern workarounds or the like, I just want to know the reason for this design.
Edit: sample code can be found on this question .
typescript
theDmi
source share