Re:Deno will stop using TypeScript
by stickfigure on Tuesday June 23, 2020 @01:16AM
(#23610153)
It's not the function parameter that has multiple representations, it's your app. The function takes one representation - let's say a numeric id. That doesn't help the client of your function, who could pass in a database id, a database record object, a json object, some sort of natural key, etc... all of which plausibly will match an untyped parameter named "thing". And your function may change its contract someday.
[ Parent
| on HN ]
There are no comments on this comment yet.