Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ycitm
on July 30, 2016
|
parent
|
context
|
favorite
| on:
Love for TypeScript
You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.
Too
on July 30, 2016
[–]
Inside the function you also have to continue using x as a number, like you wouldnt be able to accidentally pass it into a function accepting only string as argument etc.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: