Y
Hacker News
new
|
ask
|
show
|
jobs
by
simulate-me
1544 days ago
I was writing TypeScript, where const just means the variable is not reassigned. For instance this is valid:
const c: C = Math.random() < 0.5 ? { type: 'a' } : { type: 'b' }.
1 comments
xg15
1544 days ago
Ah, I'm sorry. You're right of course!
link