5 ms·
Why? It's much more verbose and error prone (e.g. "stringly typed"). Do you never deserialize JSON?
by olalonde 1y ago
Why? It's much more verbose and error prone (e.g. "stringly typed"). Do you never deserialize JSON?
- dundarious 1y agoWhat's the difference between mistyping in the string here and mistyping in the struct definition? And yes I have.
- olalonde 1y agoYou only need to get it right once, and from then on the compiler will catch any mistakes if you use it incorrectly. In contrast, every time you write obj.get_attr("DesiredSpeed"), there's a chance you'll make a typo and the compiler won't warn you about it.