DEV Community

Discussion on: Sorbet: A Type Checker for Ruby

Collapse
 
vinistock profile image
Vinicius Stock • Edited

I like the idea of types in Ruby, but I prefer steep's approach of having a separate .rbi file for the type signatures. Guess we'll have to wait and see which style is picked for Ruby 3!

Collapse
 
nickytonline profile image
Nick Taylor

I'm still fairly new to ruby. Wasn't aware of steep. Thanks for sharing.

Collapse
 
rhymes profile image
rhymes • Edited

An issue with this approach, just from a glance, is the same of documentation in a separate file: people have to keep the two files in sync. Knowing devs, they are going to do it for a while, and then forget about it.

BTW: Sorbet supports RBI: sorbet.org/docs/rbi