Noel Rappin
- 3mo ·
-
Public·
-
ruby.social
I'm currently writing the follow up to https://noelrappin.com/blog/2024/08/what-about-static-typing-in-ruby/
I'm almost talking myself into trying a hybrid approach where you don't static type the arguments to methods but you do type return values.
The idea here is that if you are running a “be open in what you accept" setup where you are coercing values anyway, setting a type on the result of the coercion gives you some tool benefit without loosing flexibility…
/1