You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this just a request to support the # syntax instead of private? Or would you expect a difference in functionality?
Considering the feature overview from the TypeScript 3.8 release notes (when it was added), in TypeScript private is "soft privacy" where # is "hard privacy". But in AssemblyScript, since there's no JS transpile, then I believe private is already "hard privacy".
Activity
mattjohnsonpint commentedon Mar 25, 2025
Is this just a request to support the
#syntax instead ofprivate? Or would you expect a difference in functionality?Considering the feature overview from the TypeScript 3.8 release notes (when it was added), in TypeScript
privateis "soft privacy" where#is "hard privacy". But in AssemblyScript, since there's no JS transpile, then I believeprivateis already "hard privacy".MichaelTheriot commentedon Jul 13, 2025
I do not use
privatein TypeScript as#supersedes it, so this is useful at least for consistent code style.I think the only functional difference without JS transpile is
#x in yshould evaluate toy instanceof this.constructor.