Hacker News new | ask | show | jobs
by ZephyrBlu 1162 days ago
My experience with Sorbet has been way better than mypy with Python. Sorbet is way more useful.
1 comments

That’s good to hear. I only ever tried Sorbet years ago when it was pretty new.
Oh that's interesting. You mentioned that Sorbet is dramatically worse than TS, but working with a modern RoR/React stack I don't have that opinion.

TS is a bit more flexible and expressive than Sorbet, but I find Sorbet very ergonomic even with strict typing. I rarely have to use T.let or T.must.

Sorbet's typed data structures like T::Struct and T::Enum are also great.