Re:Ask HN: Is Ruby/RoR Dead?
by Alifatisk on Thursday October 03, 2024 @04:53AM
(#41728681)
Sorbet / RBS?
[ Parent
| on HN ]
Just doesn't cut it... Give me python 3 style typing at the least. Nobody wants external file decorators.
I'd love to have Python3 style typings in Ruby, but I think they refused the idea because backwards compatibility?
I think the closest gem that achieves this is contracts. https://github.com/egonSchiele/contracts.ruby?tab=readme-ov-...
Sorbet can be used inline without external file decorators already and RBS is adding support too[2].
I would not be surprised if that typing information starts finding its way into YJIT for performance improvements.