3 ms·
Many Ruby users don't realise that the type system can understand all these differences. How often do you not know whether a particular variable is a string or
by lmm 9y ago
Many Ruby users don't realise that the type system can understand all these differences. How often do you not know whether a particular variable is a string or an integer? Not very often. How often do you not know whether a particular variable is a user id or an order id? Much more often. So if you think the only kind of difference a type system can tell you about is the difference between a string and an integer, you vastly underestimate the number of bugs that a type system could help you avoid.