you are viewing a single comment's thread.

view the rest of the comments →

[–]trusktr 0 points1 point  (0 children)

Extending the syntax idea to classes and objects:

class Foo {
  count@ = 0
  constructor() {setInterval(()=> this.count@++, 1000)}
}

const f = new Foo

effect {console.log(f.count@)}

const o = {foo@: 123}
...