3 ms·
Having used inline typing in PHP and Python I don't really see the benefit of putting it in a separate file either, but when I was reading about it earlier in t
by jamesfinlayson 5y ago
Having used inline typing in PHP and Python I don't really see the benefit of putting it in a separate file either, but when I was reading about it earlier in the year it sounded like Matz wanted types relegated to a separate file, so that's what happened.
- RangerScience 5y agoMy understanding is that this is gentlest possible introduction of types, since you don't have to anything to your existing code. AFAICT the Ruby community is big on gentle iterations, and this is that: enough of type system to start playing with, and to get to the whatever the next step might be.
- kayodelycaon 5y agoSometimes. Ruby 1.8 -> 1.9 was harsh. Forced every string to have an encoding and was absolutely merciless about it; UTF-8 encoding errors everywhere. In a language where so many things are fast and loose, it seemed like an odd decision, but I agree with it.