AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Importance of Having Type Annotations in Ruby Code
Sorbet already had this type annotation syntax that was valid Ruby code. To make these kind of header files, these definition files, it repurposed that existing syntax. So all of the Sorbet type annotations are actually just a Ruby DSL. There's no transpilation step that you need to be able to use Sorbet in your code base. It's just kind of the magic of again the Ruby meta programming.