Talk:Pairs of identifiers

From HaskellWiki
Revision as of 22:46, 18 April 2021 by Atravers (talk | contribs) ("Discussion" section relocated)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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.

-- HenningThielemann

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?

-- BartMassey

Del

I think 'del' is more natural pair for 'add'.

-- Evgeny Tarasov