News for hackers. Stuff that matters.
Re:Rewrite it in Rails by bhaak on Monday November 04, 2024 @02:01PM (#42044913)
> 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.

Re:Rewrite it in Rails by rco8786 on Monday November 04, 2024 @02:04PM (#42044946)
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.

Re:Rewrite it in Rails by wkirby on Monday November 04, 2024 @05:07PM (#42046483)
Type 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.