Hacker News new | ask | show | jobs
by seniorsassycat 1561 days ago
Can function overloads be marked private or deprecated independently?

Does the implementation need to repeat the effective union type?

2 comments

> Can function overloads be marked private or deprecated independently?

Private independently, no. Deprecated independently, yes.

> Does the implementation need to repeat the effective union type?

Yes, or use something even broader like `any`;

I would recommend leveraging the RSS feed