Talk:Pairs of identifiers

From HaskellWiki
Revision as of 22:52, 18 April 2021 by Atravers (talk | contribs) (Minor formatting changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

read and show

I think the names read and show in the Prelude of Haskell98 aren't a good choice because the functions can be considered as natural pair but this isn't reflected by their names. Even more read and show sound like some I/O operations which they are not. The choice for the Modula-3 libraries (Lex and Fmt) seems to be more suitable.

-- Henning Thielemann

trees

I had a nice discussion the other day with someone about the right name for tree nodes and leaves. The constructors I'm using as a result are Branch and Leaf. Anyone feel differently?

-- Bart Massey

Del

I think del is more natural pair for add.

-- Evgeny Tarasov