In future version of Go there will be builtin comparable and Ordered constraints. And i think, why Go doesn’t allow <,> operators on structs? Maybe relax those rules? Allow compare them? Rules will be the same as for comparable spec. Then Ordered will not be needed at all.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.