3 ms·
Just doesn't cut it... Give me python 3 style typing at the least. Nobody wants external file decorators.
by sibeliuss 2y ago
Just doesn't cut it... Give me python 3 style typing at the least. Nobody wants external file decorators.
- Alifatisk 2y agoI'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-file#hello-world https://github.com/egonSchiele/contracts.ruby?tab=readme-ov-...
- Lio 2y agoSorbet 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. 1. https://sorbet.org/docs/type-assertions https://sorbet.org/docs/type-assertions 2. https://github.com/soutaro/rbs-inline https://github.com/soutaro/rbs-inline