News for hackers. Stuff that matters.
Re:Ruby 3.2.0 Is from Another Dimension by goodoldneon on Wednesday January 04, 2023 @07:51AM (#34244925)
Does Ruby still not allow type annotations in the same file as your code? Last time I checked, you had to put them in separate .rbs files. That’s a dealbreaker for me
Re:Ruby 3.2.0 Is from Another Dimension by ric2b on Thursday January 05, 2023 @03:37PM (#34266190)
You can with a third party library, Sorbet. It's not the nicest experience due to not being native but it works much better than you'd expect without being native.