News for hackers. Stuff that matters.
Re:Adopting Ruby 3 types with RBS by Lio on Saturday December 26, 2020 @06:36AM (#25542803)
In most ruby projects we already maintain two files for every class; the class itself and its matching test/spec.

Something I've wondered about rbs files since I first heard about them is, can we combine rbs descriptions with our unit tests?

That would seem to make sense to me and help support TDD/BDD.

Otherwise I'd probably stick to Sorbet in-line type definitions for ruby.

There are no comments on this comment yet.