I’d argue that the reason this is so bad in other languages is because of horrible default implementations. Look at tostring in java, getting a somewhat printable object would be easy if the default implementation would use reflection or sth to print the object, but instead it prints hash gibberish no one cares about.
- 0 Posts
- 5 Comments
Joined 1 year ago
Cake day: January 3rd, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
kazaika@lemmy.worldto Programmer Humor@lemmy.ml•good luck little buddy, see you in 5 years8·1 year agoOnly if they actually port it which is what they claim they will do but until then not at all
Its more about using your own shortcuts if you dont like some which is what you should do whatever editor you use
I wanted to try zig a couple of times now but was always put off by lacking tooling and generally bad compiler errors. Its kinda hard to justify spending time on something if you see the compiler point out an error inside a standart lib zig file and there is no directon for a fix whatsoever. Im hoping it’ll get better because the language seems really great
What if youre working with library types? The problem is not not you compare a bunch of fields but that the implementation on those members is most likely bad.