7 ms·
As an alternative, Sorbet supports inline typing, separate files via .rbi (for typing external libs, etc), and I believe will support reading in .rbs files as w
by dbalatero 6y ago
As an alternative, Sorbet supports inline typing, separate files via .rbi (for typing external libs, etc), and I believe will support reading in .rbs files as well: https://sorbet.org/blog/2020/07/30/ruby-3-rbs-sorbet https://sorbet.org/blog/2020/07/30/ruby-3-rbs-sorbet
It has some limitations (arguably good - it's harder to do shady metaprogramming if you want type safety) but I've found it very productive and useful in my large code base.