Explore the static type ecosystem in Ruby, focusing on the two main type checkers: Sorbet and RBS. Learn about Sorbet's annotation-based type checking system created by Stripe and RBS's definition file-based type system supported by Ruby. Compare the differences between the two systems by adding type annotations for a popular gem using both Sorbet and RBS. Investigate the interoperability between Sorbet and RBS, and examine the practical possibilities of converting a Sorbet-annotated project to RBS in this informative 22-minute conference talk from RubyConf 2022.
Overview
Syllabus
RubyConf 2022: Static typing with RBS in Ruby by Gaurav Kumar Singh
Taught by
Ruby Central