Hacker News new | ask | show | jobs
by lootsauce 1347 days ago
I see destructuring as a great way to make function signatures more self documenting. Without the complexity of typescript types we can use destructuring of function arguments to define exactly what shape that input requires to fulfill the needs of that function. Call it overkill I call it lightweight types.