1. 17

  2. 2

    Absolutely agree, reading codebases with lots of unnamed parameters makes it very hard to confidently know what’s going on.

    Good post, thanks!

    1. 2

      It’s a pity Typescript doesn’t have a full version of the newtype pattern (it has type aliases but it treats the alias and the original type as interchangeable, which doesn’t help here) otherwise you could have a lint that says “no two args can have the same type” which solves this without having an arbitrary count limit

      1. 1

        Why couldn’t you implement such a lint rule with TypeScript?