News for hackers. Stuff that matters.
Re:I’m porting the TypeScript type checker tsc to Go by Smaug123 on Tuesday January 25, 2022 @06:50PM (#30079813)
This makes sense for semantic reasons though. If you accidentally return a `number` when you returned a `string` in some earlier branch, Typescript will happily unify them and now your function silently returns `string | number`. The linting rule prevents this.

There are no comments on this comment yet.