Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wdfx
on Oct 12, 2021
|
parent
|
context
|
favorite
| on:
Tricks I wish I knew when I learned TypeScript
I somewhat agree, but to me the semantics using unknown makes more sense as the function is attempting to answer a question of the input object.
"What is object? I don't know. Does it meet these conditions? Yes then object is Human else not."
Etheryte
on Oct 12, 2021
[–]
While I see where you're coming from, semantic formulation like this is highly subjective. All the same the problem statement could be "Given any kind of input, tell me whether it's a Human or not".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
"What is object? I don't know. Does it meet these conditions? Yes then object is Human else not."