Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby
by seanmcdirmid on Thursday June 20, 2019 @08:29PM
(#20238806)
The better feedback loop actually makes it worth it. Yes, we don't get soundness and performance when programming in TypeScript, but we do get better feedback in the editor along with great escape hatches for customizing types as needed. I don't know if I ever can go back to a sound statically typed language again, actually, TypeScript is just way too useful.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby
by Zarel on Friday June 21, 2019 @03:55AM
(#20240734)
I feel exactly the same way. I thought I liked static typing more than dynamic typing until I tried TypeScript, but TypeScript feels like by far the best of both worlds.
I especially feel like null checking is impossible to live without, and I'm going to strongly prefer TypeScript over Go or Dart from munificent's list until they add null checking.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby
by munificent on Monday June 24, 2019 @05:11PM
(#20268526)
We're working on static null checking in Dart now. Unlike TypeScript's, Dart's approach to null checking will be sound.
In some senses this is even worse than programming in either a dynamically typed language or a statically typed one. You still get the performance and unsoundness of a dynamically typed language. But you also get the type errors and cognitive load of a typed language, with a type system that is much more complex than a typical typed language.