3 ms·
> Typing efforts are fractured, and the official way is... well.. it's bad. Official way? I thought there is none. As long as there is no support for gradual
by bhaak 2y ago
> Typing efforts are fractured, and the official way is... well.. it's bad.
Official way? I thought there is none.
As long as there is no support for gradual typing in the core language it will never be used outside of niche programming.
And then I have a hard time imagining that Rails would use it anyway. Unless the performance boost would be tremendous.
- rco8786 2y agohttps://github.com/ruby/rbs https://github.com/ruby/rbs is the "officially supported" one. It's terrible, as is Sorbet. No offense to anyone involved with either of the projects, they just miss the mark in pretty fundamental ways.
- wkirby 2y agoType definitions were introduced in Ruby 3. I personally think they are terrible --- primarily because they exist in sibling type files. They are arduous to write, don't have great tooling support, and don't feel like a part of the language at all.