|
|
|
|
|
by riffraff
358 days ago
|
|
I would argue when you're passing around stringy JSON-like thingies is when typing is most useful :) You're not going to misuse an API that takes a Person or Cart, but mixing up two hashes cause you used two different strings as keys can happen easily. (I do think dynamic typing is mostly fine, but I do wish ruby had optional static typing with some nice syntax instead of RBS) |
|
This is more or less trivial to catch and fix, I'm just not sure a type system is worth it's weight for that kind of case.