News for hackers. Stuff that matters.
Re:TIL: `satisfies` is my favorite TypeScript keyword by skydhash on Sunday November 23, 2025 @08:30AM (#46023422)
What about documentation as in docstring, function signature label and the like. I quite like CommonLisp, EmacsLisp, Go for that.
Re:TIL: `satisfies` is my favorite TypeScript keyword by kennywinker on Sunday November 23, 2025 @07:49PM (#46029039)
Yeah, that’s probably the best possible implementation outside of the type system. The issue with docstrings is that they aren’t checked. So you’ve communicated the api to the coder, and maybe even to the ide, but not to the compiler.