3 ms·
While static typing surely helps, Go has its own issues working with polymorphic JSON, and don't get me started on working with XML. I have never liked struct t
by aikah 10y ago
While static typing surely helps, Go has its own issues working with polymorphic JSON, and don't get me started on working with XML. I have never liked struct tags. Why would a statically typed language relies on this fragile feature ? it's often a source of bugs since they are just strings that need to be parsed at runtime, with reflection, and frankly the std lib struct tag parser is extremely fragile. Go is full of these things. In order to make the compiler go fast, the developer has to do the compiler's job, at runtime. That's not right.
If some external data doesn't fit Go type system then Go makes it extremely hard to work with these data. Same thing with SQL, it's extremely tedious with Go when fields can be null.