RSSAmplifier

soc.me · Oct 31, 2018

Language Design: Comparing and Sorting

0
Sign in to vote or save

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…

Read on /languages/comparing-and-sorting.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.