News for hackers. Stuff that matters.
Re:Switching to Elixir by spion on Friday November 10, 2023 @06:43AM (#38217707)
The example is, interestingly possible in TypeScript, at a very cheap cost

  function modifiesValField(struct: {val: number}) {
    struct.val = 0;
  }
Structural types and inline interfaces (or as I like to call them inyourfaces) are pretty cool.

But I do get your point - although type systems have gotten much less annoying, its not like they're perfect.

There are no comments on this comment yet.