This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
Similarly to equality and identity , most languages have severely restricted facilities to handle distinct ordering relationships like comparison and sorting. Languages usually provide only a single operation/protocol, often requiring workarounds for some data types in which the comparison operation and the sorting operation return distinct results. Consider the following Comparable trait as it…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.