Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
UberMouse
on Nov 20, 2014
|
parent
|
context
|
favorite
| on:
TypeScript 1.4 sneak peek: union types, type guard...
So variables are explicitly declared, don't have issues of mis typing a variable name and accidentally declaring a new one.
Note: This is just my thinking, I don't know if it's the actual reason
Retra
on Nov 20, 2014
[–]
That's a sensible reason, sure, but I'd rather declare it with an actual type instead.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Note: This is just my thinking, I don't know if it's the actual reason