4 ms·
Static typing is like an automatic test for a specific category of errors- type errors. That's why it's useful. Ruby's choice of making it optional means folks
by mabbo 5y ago
Static typing is like an automatic test for a specific category of errors- type errors. That's why it's useful.
Ruby's choice of making it optional means folks like yourself who want to move fast and break things are welcome to do so, but those of us working on more mature systems that need the reliability and lack of bugs can add this on and get the safety.
- Mikeb85 5y agoRuby is strongly typed anyway... The runtime complains if you mis-type something just as a compiler would complain. In fact, linters just catch it as you type (plus any other typos). Mixing it up with JS (which is weakly typed)?