|
|
|
|
|
by vemv
2616 days ago
|
|
Learning from the clojure.spec success story, what might make/break Sorbet is its runtime capabilities, aka reification. * Can I emit typed REST API docs out of sorbet types? * Can I coerce HTTP params out of sorbet types? * Can I emit ActiveRecord columns? ActiveModel validations? * Can I emit generative tests? You can do all of those (and whatever else you imagine) with clojure.spec in a DRY manner, i.e. types are defined once, and reused in a variety of contexts. As a Rails dev, I would greatly value all of those, particularly because they're practical things directly related to my webdev activity. Ensuring the type safety of the codebase is great, but also implicitly exercised by an adequate test suite. |
|