Re:Why We Chose Typescript
by davidjnelson on Saturday July 01, 2017 @06:34PM
(#14679448)
Couldn't you solve this with privates, either via a naming convention or with symbols, as well as using getters?
[ Parent
| on HN ]
Re:Why We Chose Typescript
by emodendroket on Saturday July 01, 2017 @09:45PM
(#14680318)
Not really. If I declare that an object has property xyz obj.xyz and obj['xyz'] are both valid ways of addressing it.