Current approach has some drawbacks.
We cannot use kotlin object as DTO (data transfer object) because js side cannot use any properties from it. JS side (i.e. hand-written js code) or native side (browser extension or server side) try to get property “a” from passed object, but actually it is a function “get_a()”
It is main reason to start this discussion, but there are many other advantages — debuggable and readable code.
Current approach is needed only if user want compatibility with IE <8, but in any case we must generate more simple JS code — if kotlin var doesn’t define getter/setter, so, don’t generate getter/setter for it.
What do you think about it? Do you have any plans about it?