3 ms·
This pattern is basically like the functional programming pattern of converting functions to unary ones that accept algebraic data types. I think the benefits g
by chrischen 5y ago
This pattern is basically like the functional programming pattern of converting functions to unary ones that accept algebraic data types. I think the benefits go beyond just named argument readability. You can easily see and construct an argument object that conforms to what the function needs, especially if you add Typescript in to statically check it.