I'm currently writing the follow up to noelrappin.com/blog/2024/08/wh

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

3
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Replies