Re:Grain: A strongly-typed functional programming language f...
by dgreensp on Sunday April 25, 2021 @11:18AM
(#26933382)
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”).
[ Parent
| on HN ]
There are no comments on this comment yet.