3 ms·
Making the names part of the type solves this, like structural object types in TypeScript. I’ve come to the conclusion myself that, with the right language syn
by dgreensp 5y ago
Making the names part of the type solves this, like structural object types in TypeScript. I’ve come to the conclusion myself that, with the right language syntax supporting it, positional arguments and tuples should be limited to two, maybe three entries, and in the vast majority of cases should be replaced with named/keyword arguments and records even when they are that small (with unnamed, ordered entries being used in cases where there aren’t better names than “first” and “second” or “a” and “b”).