3 ms·
I tried using sorbet on our project, but the type system it supports is way too poor. The most glaring problem is the lack of support for duck typing, only nomi
by Fire-Dragon-DoL 5y ago
I tried using sorbet on our project, but the type system it supports is way too poor.
The most glaring problem is the lack of support for duck typing, only nominal typing is supported, no structural typing.
For key parts of the code, there was no type safety where we expected it.
In the end, it felt far from being like Typescript, we opted for removing it, instead we added some runtime type checking and we document with YARD. Far from ideal, but that's the tooling available.
The gem integration is terrible currently: we wrote the gem, fully typed with sorbet, but for some reason the type checking was completely ignored in the main project where we referred it