Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

TS has a way to attach type annotations (.d.ts files) on top of existing JS code base, thus allowing for gradual migration and relatively peaceful coexistence. Same with Python: you can add type definitions on top of existing untyped code, as a separate package. In either case, types can be provided by a third party, e.g. yourself if you want to use a particular library and it still lacks typing support.

Does Sorbet offer something comparable? That would make adoption easier.



> Does Sorbet offer something comparable?

Yes, RBI files.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: