News for hackers. Stuff that matters.
Re:Implementation Inheritance Is Evil by yipopov on Monday January 15, 2018 @08:18AM (#16150270)
I'm curious what HN thinks of the current trend in languages like Kotlin and Typescript of having getters and setters masquerade as properties.

Then again if you have to use accessors in the first place you have already committed the crime and exposed the internals and might as well just go with the simpler syntax instead of trying to fool yourself with a bunch of getFoo()s and setFoo()s.

There are no comments on this comment yet.