by jstimpfle · 6y ago · 0 comments
I find code dealing with structures that have their members prefixed with a unique prefix much easier to read, usually.
Given the pervasiveness of APIs that contain struct definitions nowadays, it's also understandable that the unique-constraint was removed.
I have not seen a case of it creating problems where there weren't already plenty of other problems with the code and metaprograming had to be abandoned anyway. But it does create problems.
Then again, OCaml still has module-scoped scoped record field names today, even though it also uses the dot syntax.