Re:TIL: `satisfies` is my favorite TypeScript keyword
by Androider on Saturday November 22, 2025 @07:05PM
(#46019496)
80% of the value of TypeScript is that it will tell you when when you changed or added a parameter and forgot to update it everywhere, you doofus. The other 20% is that it keeps coding agents from going too far off the rails. Trying to use the type system as a metaprogramming language is only valuable as a fun exercise, but of negative value in real world projects.
[ Parent
| on HN ]
Re:TIL: `satisfies` is my favorite TypeScript keyword
by another_twist on Sunday November 23, 2025 @03:08AM
(#46021677)
This thread is weird, also spot on, not sure why its downvoted. I am happy when the IDE spots my dufusness.
Re:TIL: `satisfies` is my favorite TypeScript keyword
by sethaurus on Sunday November 23, 2025 @06:47AM
(#46022802)
That's a little ungenerous. Richer types are not intrinsically about metaprogramming, they just let you model your domain more accurately so you can turn runtime errors into build-time errors. If your system already has natural constraints, you get to document them in a machine-checkable way.