News for hackers. Stuff that matters.
Re:Go Turns 10 by mantap on Friday November 08, 2019 @11:58PM (#21489715)
I have found with typescript that having a gradual, structural type system actually helps with quick and dirty prototyping, as it allows me to notate data structures. It's hard to find a reason to use JavaScript.

Note that type errors in typescript are actually just warnings and you can ignore them. I never do, but you can.

Re:Go Turns 10 by liamdiprose on Saturday November 09, 2019 @03:04AM (#21490294)
I've had similar success with the gradual typing in Python. NamedTuples are far superior to ad hoc dictionaries, for both documenting data structures, but also as a prompt to consider the software structure.

I wasn't aware that typescript type errors were only warnings. Every webpack/typescript project I've used must have had the typecheck set to error, leading me to believe typescript was some draconian type checker akin to Rust or Haskell.