News for hackers. Stuff that matters.
Re:Stripe is building a Ruby typechecker by vidarh on Monday June 04, 2018 @06:36AM (#17226409)
One thing that springs to mind: Does it handle duck-typing? In other words, can I specify "any object that responds to methods x and y" as the expected type of a variable?

Because if treats classes as equivalent to types, then to me it encourages non-idiomatic Ruby.

Re:Stripe is building a Ruby typechecker by inopinatus on Monday June 04, 2018 @07:46AM (#17226849)
We only have the published examples to go on, but unfortunately they all seem to assume that type means class.

If that’s borne out I could never use this library. It’d be the antithesis of duck typing and object messaging.