News for hackers. Stuff that matters.
Re:I’m porting the TypeScript type checker tsc to Go by mixedCase on Tuesday January 25, 2022 @03:09PM (#30077340)
Have you tried doing Type-Driven Development? IME, most of the time constraints are determined through types first with the code being done later tends to replace the game of "what kind of complex and non-obvious types fit my code the most" with a "oh, the implementation is obvious" reaction.

It also makes it easier to determine what behavior is worth testing and which ones are already covered by your types, if you tend to write tests last. If instead you're used to Test-Driven Development you can do types->tests->code.

Re:I’m porting the TypeScript type checker tsc to Go by eatonphil on Tuesday January 25, 2022 @03:15PM (#30077432)
I've spent a lot of time programming in Standard ML and yeah that's a prerequisite there.

But no I don't prefer it to what I do in TypeScript.