News for hackers. Stuff that matters.
Re:Get to Know the Actor Model with JavaScript by bsimpson on Tuesday September 05, 2017 @08:42PM (#15180270)
I'd also have liked to see destructuring used to set the new state:

    return {
      ...state,
      count,
    }
I realize that it's superfluous when count is the only property on state, but it makes the code both easier to understand and to maintain as state gains new properties over time.
Re:Get to Know the Actor Model with JavaScript by spraak on Wednesday September 06, 2017 @12:51AM (#15181313)
I've more often seen that called "property value shorthand", but it does compliment destructuring
Re:Get to Know the Actor Model with JavaScript by bsimpson on Wednesday September 06, 2017 @03:09AM (#15181755)
I probably should have said spread. My inner monologue thinks of ... as destructuring, even though I intellectually know they are distinct.