Thread with 5 posts
jump to expanded postJavaScript/TypeScript getters and setters
#JavaScript #TypeScript #codingStyle #getters
@zlatko anyone who voted „no“: why?
@zyklop for me personally, too much indirection and boilerplate.
@zyklop there are places, usually in libs, where you want to intercept things without the caller knowing, but lots of the places from the code that triggered the question was just about getting the value from a prop, no specials at all.
@zyklop and that just smells of a java dev writing js.