Comment by olalonde

1 day ago

Why? It's much more verbose and error prone (e.g. "stringly typed"). Do you never deserialize JSON?

What's the difference between mistyping in the string here and mistyping in the struct definition? And yes I have.

  • You 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.