1. 11
  1.  

  2. 3

    I like it in general, but readonly is really jarring. It should be more succinct to declare something immutable than mutable.

    Why punish devs for trying to do the right thing?

    1. 4

      To be clear, readonly is not the same as immutable. See here: https://basarat.gitbooks.io/typescript/content/docs/types/readonly.html

      Also, since TS is a superset of JS, making immutability more concise is likely impossible By default. Perhaps with a compiler flag?